优化密码设置流程
This commit is contained in:
parent
cbd3efe796
commit
9a4dafbce5
|
@ -154,8 +154,8 @@ class MyController < ApplicationController
|
|||
|
||||
@user = User.current
|
||||
|
||||
#是否是oauth过来的
|
||||
@is_oauth = !!Oauth.find_by_user_id(@user.id)
|
||||
#是否是Oschina过来的
|
||||
@is_oauth = !!Oschina.find_by_user_id(@user.id)
|
||||
|
||||
#是否没设置过密码
|
||||
@is_set_password = @user.hashed_password.present?
|
||||
|
|
Loading…
Reference in New Issue