sorcery - Ruby on rails, deactivation of a user -


I am using sorcery gem for user authentication. My model is:

  create_table "users" ,: force = & gt; Is true T | T.string "email" ,: null = & gt; Wrong t.string "crypted_password" t.string "salt" t.datetime "created_at" ,: null = & gt; Incorrect t.datetime "updated_at" ,: null = & gt; Wrong t.string "remember_me_token" t.datetime "remember_me_token_expires_at" t.string "Skriyn_stet" t.string "activation_token" t.datetime "activation_token_expires_at" end  

I could not get in that a user is a built-in function to disable what it would be safer to find the user and can change only parameter activation_state to disable?

You can call

user.setup_activation

the activation_state will set to "pending" and the new Skriyn_tokn .

Or you can manually set activation_state to "pending" This is all.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -