ruby on rails - Use Devise without a password -


Is there a way that I can ask for a password not to use a password? I am using LDAP with DDS so that the encrypted password field is a vain column (password stored in the LDAP directory). If I delete the encrypted_password column and then add some dummy accessories to my model

  def encrypted_password "" end def encrypted_password = dummy and  

I get rid of the column in the database at least. However, when I make new users, I also have to give a dummy password

  User.create (: first_name = & gt; "Dummy ",: Password =>" dummyPass1 ",: password_confirmation =  

Is there a setting which Cleaner will create?

You can take "database_authenticatable" from the devise config line in your user model, and Can completely drop down the encrypted password.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -