Skip to content

Commit

Permalink
fix(identities): Ensure username identity email cannot be changed
Browse files Browse the repository at this point in the history
castaway committed Apr 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f1aa7f8 commit b27f444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/profiles/profiles.editor.modal.html
Original file line number Diff line number Diff line change
@@ -46,7 +46,7 @@
<ng-template #other_content>
<mat-form-field class="form-field form-item">
<input matInput placeholder="Email" [ngStyle]="get_form_field_style()" name="email"
[readonly]="( identity && identity.type == 'aliases' )"
[readonly]="( identity && (identity.type === 'aliases' || identity.type === 'main' ))"
[(ngModel)]="identity.email" (ngModelChange)="onchange_field('email')" />
<div *ngIf="field_errors && field_errors.email">
<mat-hint>

0 comments on commit b27f444

Please sign in to comment.