优化密码设置流程

This commit is contained in:
guange 2018-11-23 19:35:28 +08:00
parent cbd3efe796
commit 9a4dafbce5
1 changed files with 2 additions and 2 deletions

View File

@ -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?