fix login userid regex

This commit is contained in:
adb 2021-04-09 01:03:11 +02:00
parent 22c6170787
commit 30a7e4da81

View File

@ -42,7 +42,7 @@ export default {
} if (this.password === '') { } if (this.password === '') {
this.loginError = 'password is empty'; this.loginError = 'password is empty';
return; return;
} if (!(this.user.match(/^@[a-zA-Z0-9]+:[a-z0-9]+\.[a-z]/))) { } if (!(this.user.match(/^@[a-zA-Z0-9_.+-]+:[a-z0-9.-]+\.[a-z]+$/))) {
this.loginError = 'username is in wrong style'; this.loginError = 'username is in wrong style';
return; return;
} }