MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Renaming admin account  (Mono Support )

33797 put(a) pogledan, 4 odgovor(a) 12.12.2012. 20:41:59Kreirao(la) Zoomicon

Povezane teme

Zoomicon

Zoomicon

12.12.2012. 20:45:55
after one uses admin console to rename the admin user they're logged in with, they start getting security errors (say if they then press Add user to add another user) till they log out and log in again with the new username for the admin
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
khorvat

khorvat

17.12.2012. 8:14:20
This is ASP.NET built-in functionality, as MonoX is using ASP.NET Forms authentication by default you get the Session Id saved in the cookie, so after you change the username for admin that Session Id can't be validated anymore and that is the reason you get the security exception.

Regards   
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Zoomicon

Zoomicon

17.12.2012. 14:31:19
Why should the admin experience such a behaviour though? It should show a prompt to the admin that since they renamed the account they're currently logged in with, they will be immediately logged out and they should log in again with the new account name or other admin account. Pressing OK would log them out
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava
Zoomicon

Zoomicon

17.12.2012. 14:33:32
A related issue is when admin is in the admin console, then logs out, then logs in as a user to try the site and they get errors about illegal access etc.
</br>
</br>When user logs in with non-admin account and the login screen sees that it is supposed to take them to admin console they could be redirected to the home page instead.
Ovaj sadržaj još nije ocijenjen. 
2793 Reputacija 345 Ukupno objava