1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-21 21:51:39 +00:00

Allow the . (dot) and @ (at) character in usernames (#637)

Co-authored-by: Uli Koeth <uli@kiot.eu>
This commit is contained in:
Uli
2022-05-05 17:48:45 +02:00
committed by GitHub
parent c6a685d7c0
commit 90d5bc8de7
4 changed files with 16 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
<label class="col-sm-2 control-label" for="inputUserUsername">{{ 'settings.user.edit.username' | translate }}</label>
<div class="col-sm-7">
<input name="userUsername" type="text" id="inputUserUsername" required ng-disabled="isEdit()" class="form-control"
ng-pattern="/^[a-zA-Z0-9_]*$/"
ng-pattern="/^[a-zA-Z0-9_@\.]*$/"
ng-minlength="3" ng-maxlength="50" ng-attr-placeholder="{{ 'settings.user.edit.username' | translate }}" ng-model="user.username"/>
</div>
@@ -129,4 +129,4 @@
</div>
</div>
</form>
</div>
</div>