mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix typo & add stylus style (#1195)
This commit is contained in:
1 parent
a8ec204a04
commit
52f811cf98
10 files changed
+32
-20
No files matched your search
@@ -486,7 +486,7 @@ class OauthCallbackHandler extends Handler {
|
||||
if (this.session.oauthBind === args.type) {
|
||||
delete this.session.oauthBind;
|
||||
if (existing.some((id) => id && id !== this.user._id)) {
|
||||
throw new BadRequestError('Already binded to another account');
|
||||
throw new BadRequestError('Already bound to another account');
|
||||
}
|
||||
this.response.redirect = this.session.oauthRedirect || this.url('home_security');
|
||||
delete this.session.oauthRedirect;
|
||||
@@ -508,7 +508,7 @@ class OauthCallbackHandler extends Handler {
|
||||
delete this.session.oauthRedirect;
|
||||
return;
|
||||
}
|
||||
if (!provider.canRegister) throw new ForbiddenError('No binded account found');
|
||||
if (!provider.canRegister) throw new ForbiddenError('No bound account found');
|
||||
this.checkPriv(PRIV.PRIV_REGISTER_USER);
|
||||
let username = '';
|
||||
r.uname ||= [];
|
||||
|
||||
Reference in new issue
Block a user