Rails Authlogic Prevent User from Changing their Login/Username
Posted
by bob
on Stack Overflow
See other posts from Stack Overflow
or by bob
Published on 2010-04-19T21:54:06Z
Indexed on
2010/04/19
22:03 UTC
Read the original article
Hit count: 214
Hello, I have implemented Authlogic. I believe that this isn't an authlogic specific quesetion. Assume that I have a User model and each User has a column in the database called "login".
Upon creating a user, the login column is populated. However, I don't want the user to be able to change their login once they set it.
Currently, I have removed the text field in the _form.html.erb file in my views for users. However, it can probably still be accessed through the url right?
How can I make it so that once a login is set, it can not be changed at all?
© Stack Overflow or respective owner