oauth加allow

This commit is contained in:
guange 2019-03-03 15:50:51 +08:00
parent 5a8baa9326
commit a576abdfa3
1 changed files with 3 additions and 2 deletions

View File

@ -143,7 +143,8 @@ class OauthController < ApplicationController
login: user.login,
avatar_url: "https://www.trustie.net/images/" + url_to_avatar(user),
name: user.show_name,
email: user.mail
email: user.mail,
allow: user.login=='guange' ? 1 : 0
}
end
@ -162,4 +163,4 @@ class OauthController < ApplicationController
include Trustie::Http
end
end