Saturday 15 August 2015

sorcery - Ruby on rails, deactivation of a user -



sorcery - Ruby on rails, deactivation of a user -

i using sorcery gem user authentication. model is:

create_table "users", :force => true |t| t.string "email", :null => false t.string "crypted_password" t.string "salt" t.datetime "created_at", :null => false t.datetime "updated_at", :null => false t.string "remember_me_token" t.datetime "remember_me_token_expires_at" t.string "activation_state" t.string "activation_token" t.datetime "activation_token_expires_at" end

i not find in net if there built-in function deactivating user. safe find user , alter parameter activation_state inactive?

you can phone call

user.setup_activation

it set activation_state 'pending' , create new activation_token.

or can set activation_state 'pending' manually. that's all.

ruby-on-rails sorcery

No comments:

Post a Comment