Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9187873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T19:52:48+00:00 2026-06-17T19:52:48+00:00

I am writing a module to deny admin users access unless coming from a

  • 0

I am writing a module to deny admin users access unless coming from a specific IP. I am hooking into the admin successful login event, checking their IP against an array of IPs and if the admin user’s IP is not in the list I am logging them out, and redirecting them back to the admin login page.

My question is….

how do I set a message on the login page similar to “Incorrect Password”?

Any snippets or ideas are greatly appreciated!

Thank you!

Jeff

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T19:52:49+00:00Added an answer on June 17, 2026 at 7:52 pm

    You can try to throw an exception like this:

    Mage::throwException(Mage::helper('adminhtml')->__('You are not authorized.'));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing a module for Magento that only allows users to login from
I'm writing a kernel module that needs to read the value of bitrate from
I am writing module which allows to quick add users only by providing First
I'm writing an ejabberd module. What it does is saving some messages into a
I am writing a module in OpenERP that would inherit from the Accounts module.
I am writing a module that should allow users to select parts of an
I'm writing a module in Drupal-7 that dynamically sends a one-time login link to
In writing a login module, I want to log IP's as an additional measure
I am writing a module in Drupal 7, that shows some data from database
I'm writing a module to act on data being sent to a database from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.