Page 1 of 1

Can changing login to empty

Posted: Fri Dec 16, 2011 11:47 am
by milo_ose
hi, i found a bug when i went to change my admin user name.
If you keep empty you're username field and press "enter" we have an username with null value.
If you disconnect and want to login you can't. I think you must check username field is'nt Null when editing user informations.

screens(click to full width):

pannel admin after change username : log as {}
Image

db field username empty:
Image

serendipity version 1.6

Re: Can changing login to empty

Posted: Fri Dec 16, 2011 2:23 pm
by garvinhicking
Hi!

Yes, currently we have no validation for empty fields. I agree that we could add it for the username, even though I wonder why someone would set a username to an empty string and then wonder he can't login ;)

Regards,
Garvin

Re: Can changing login to empty

Posted: Fri Dec 16, 2011 3:07 pm
by milo_ose
I don't want set it empty but a miss-click is posssible (an example? -> me this morning). :oops: