Closed ximex closed 8 years ago
it looks if this all has to be done in "login_check.php"
+1 this should be done!
also change the case insensive username checking to a case sensitive check.
WHERE UPPER(usr_login_name) LIKE UPPER(\''.$loginname.'\')
to
WHERE usr_login_name LIKE \''.$loginname.'\'
And PLEASE use Joins!!! the code looks like as it really needs a rewrite ;-)
I think usernames should not case sensitive, there is not much security improvement, but it can be complicated, if there are several users differing only in case. Often people using their email and this is also not case-sensitive.
Perhaps the better way is to allow only lowercase usernames at all.
The username should not be case sensitiv. This is easier for users to register.
The username should not be case sensitiv.
ok
@ximex do you implement this?
if i found time for this yes. shouldn't be that hard
The release of 3.1 is "far" away ;)
first part done: https://github.com/Admidio/admidio/commit/bd85d3cbfc93f88b98f604979f877bc64a561058
Edit: Updated commit id
Flow should be:
ok we have to look at other things too: is the user currently a member of valid role? What should we do if:
I think "Login incorrect (username OR password)" is wrong in all 3 possibilities
If "username & password correct & NOT activated" with any state of the membership or role status above should always the message "not activated"
so the new flow:
So we need the messages for the 3 possibilities above to set the behaviour of Point 5.
Edit: change flow (add check for 3 false passwords)
I'm nearly finished with the code. Now i have to change the code for the update login. The other things work. I used "Anmeldedaten korrekt, jedoch ist dieser User aktuell kein gültiges Mitglied einer Organisation." for all 3 possibilities from the last message.
@Fasse please check
One more message added for "no webadmin"
looks good to me, some basic checks were ok. only changed some messages.
We should change the behavior of the printed error messages at the login process.
Today:
Should change to:
We shouldn't give an attacker infos about if a username exists e.g. This way is the common secure way