Rails Authlogic Prevent User from Changing their Login/Username
- by bob
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?