Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit bc2d46b6 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

Fix username message + username field

parent f956bc71
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@
class="has-error">You should type an username
</div>
<div *ngIf="userForm.controls['username'].hasError('pattern') && userForm.controls['username'].touched"
class="has-error">Username can only contain alphanumeric characters (letters A-Z, numbers 0-9) and must
class="has-error">Username is case insensitive and can only contain alphanumeric characters (letters a-zA-Z, numbers 0-9) and must
have from 4 to 32 characters!
</div>
<div
......@@ -54,8 +54,8 @@
<legend>Username/password credentials</legend>
<div style="display: flex;flex-flow: row wrap;">
<mat-form-field style="flex-grow: 2">
<input matInput placeholder="Username" [formControl]="userForm.controls['username']"
id="username-password_id" maxlength="255" disabled>
<input matInput placeholder="Username" [value]="userForm.controls['username'].value"
id="username-password_id" maxlength="255" disabled readonly>
</mat-form-field>
<mat-form-field *ngIf="!!userForm.get('passwordExpireOn').value" style="flex-grow: 1">
<input matInput placeholder="Valid until"
......@@ -80,7 +80,7 @@
<legend>CAS authentication</legend>
<mat-form-field style="width: 100%">
<input matInput placeholder="Cas identifier" [formControl]="userForm.controls['username']"
id="cas-user_id" maxlength="255" disabled>
id="cas-user_id" maxlength="255" disabled readonly>
</mat-form-field>
<button mat-flat-button color="primary" style="width: 100%" id="openCASData" [disabled]="!this.current?.casUserDataUrl"
(click)="openCurrentCasUserData()">
......
......@@ -68,7 +68,7 @@ public class SMPMessages {
public static final String MSG_21 = "Unable to login. SMP is not running.";
public static final String USERNAME_VALIDATION_MESSAGE = "Username can only contain alphanumeric characters (letters A-Z, numbers 0-9) and must have from 4 to 32 characters!";
public static final String USERNAME_VALIDATION_MESSAGE = "Username is case insensitive and can only contain alphanumeric characters (letters a-zA-Z, numbers 0-9) and must have from 4 to 32 characters!";
public static final String PASS_POLICY_MESSAGE = "Password should follow all of these rules:\n" +
"- Minimum length: 8 characters\n" +
"- Maximum length: 32 characters\n" +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment