diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-20 13:47:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:19 +0200 |
commit | 7f28f2ddbaeecf451d501e99ded0408c14a33600 (patch) | |
tree | 62388dff577fc765c0df0be6a3619527b1fbca21 /client/src/app/+login/login.component.ts | |
parent | 01af646261264befde7ce6ca5130fd07c0b23aa1 (diff) | |
download | PeerTube-7f28f2ddbaeecf451d501e99ded0408c14a33600.tar.gz PeerTube-7f28f2ddbaeecf451d501e99ded0408c14a33600.tar.zst PeerTube-7f28f2ddbaeecf451d501e99ded0408c14a33600.zip |
Warning when using capitalized letter in login
Diffstat (limited to 'client/src/app/+login/login.component.ts')
-rw-r--r-- | client/src/app/+login/login.component.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/+login/login.component.ts b/client/src/app/+login/login.component.ts index d8ad49081..9731383af 100644 --- a/client/src/app/+login/login.component.ts +++ b/client/src/app/+login/login.component.ts | |||
@@ -141,6 +141,10 @@ The link will expire within 1 hour.` | |||
141 | this.accordion = instanceAboutAccordion.accordion | 141 | this.accordion = instanceAboutAccordion.accordion |
142 | } | 142 | } |
143 | 143 | ||
144 | hasUsernameUppercase () { | ||
145 | return this.form.value['username'].match(/[A-Z]/) | ||
146 | } | ||
147 | |||
144 | private loadExternalAuthToken (username: string, token: string) { | 148 | private loadExternalAuthToken (username: string, token: string) { |
145 | this.isAuthenticatedWithExternalAuth = true | 149 | this.isAuthenticatedWithExternalAuth = true |
146 | 150 | ||