Username change

Back to General discussions forum

SergioEA     2024-10-10 11:47:34
User avatar

Hi, I'd like to change my username to the same as the one I use on GitHub, but when I try to change it in settings nothing happens. I get the message "Name was changed!" but the page reloads and the old name appears again. I don't know if I'm doing something wrong or if the name change functionality doesn't work like that. Thanks!

Rodion (admin)     2024-10-10 19:22:21
User avatar

Sergio, Hi!

Thanks for reporting it. I tried, it reproduces - investigated - and found very silly bug:

When refactoring code to put it to github, in this line I replaced some ugly construct with call to function which checks that user is not suspended (in which case it is no good to change the name).

Obviously I meant if "not suspended" - but forgotten the logical inversion!

https://github.com/CodeAbbey/src/blob/e124a980361fc277c356a757b1a966a03ef8cb11/ctl/user/settings/Chname.php#L28

Now it should work. Please try. If all is ok, I'll also update the code at github.

SergioEA     2024-10-10 20:38:11
User avatar

Works! Thank you very much and congratulations for the website. I hope to be able to apply for a certificate soon :)

Rodion (admin)     2024-10-10 21:17:37
User avatar

Oh, that would be great! It is quite some time already since anyone claimed any certificate :(

Please login and solve 5 problems to be able to post at forum