?errorcode=3 on alternate login page

?errorcode=3 on alternate login page

by F. Siegel -
Number of replies: 5

I have an alternate login page to moodle with only one problem:
When users put in a wrong username or password the only feedback they got is "?errorcode=3" in the URL.

How can I put this into a userfriendly error message in the login form?

Thanks for your support smile

Average of ratings: -
In reply to F. Siegel

Re: ?errorcode=3 on alternate login page

by Fred Weiss -
Hi

Did you ever find a solution to this.  Have just encountered the same issue when setting up an alternate login.

Tks

In reply to Fred Weiss

Re: ?errorcode=3 on alternate login page

by Emanuel Pessoa -

Just check if $_SERVER['QUERY_STRING'] is equal to "errorcode=3" then show what you want. ;)

 

In reply to Emanuel Pessoa

Re: ?errorcode=3 on alternate login page

by Davi DePaula -

Hey Emanuel, do you have a sample code?

I'm assuming if the user enter the wrong credentials, the server saves an error code to a global variable. What is the global variable name?


Thanks.