注册后自动登录

dev_forum
jingquan huang 5 years ago
parent e40e1d9965
commit be855c5920

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

Loading…
Cancel
Save