注册后自动登录

dev_forum
jingquan huang 5 years ago
parent e40e1d9965
commit be855c5920

@ -52,6 +52,8 @@ class AccountsController < ApplicationController
container_type: pre == 'p' ? 'Phone' : 'Mail',
score: 500
)
successful_authentication(@user)
session[:user_id] = @user.id
end
rescue Exception => e
uid_logger_error(e.message)

Loading…
Cancel
Save