Jump to content
Larry Ullman's Book Forums

How To Show A Custom Error Message On Invalid Login User

Recommended Posts

I have set some custom validation for login the user, i.e. once a user create an account then that account will be confirmed by the administrator of the site, for that purpose I am using is_confirmed (ENUM) type field. and I have set its validation on login action and a user can't login if its not yet confirmed, but I have set a simple text message like "You are not yet confirmed" and this message is displayed at the top of the page.

Now I want to show that message in form, just like when  we enter an invalid password then it shows the message that your password is inavlid etc.

So how can I show my message in the login form below the text field boxes.


Thanks in advance.

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...