mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-20 20:08:46 +00:00
* fix: add prompt on oidc rp * fix: add prompt on oidc rp * fix: translation * fix: translation * fix: not existing login policy * fix: login policy * fix: identity provider detail * fix: idp update * fix: idps in login policy * fix: lint * fix: scss * fix: external idps on auth user detail * fix: idp create mapping fields * fix: remove idp provider * fix: angular lint * fix: login policy view * fix: translations
157 lines
8.5 KiB
HTML
157 lines
8.5 KiB
HTML
<app-meta-layout>
|
|
<div class="max-width-container">
|
|
<h1 class="h1">{{ 'USER.TITLE' | translate }}</h1>
|
|
<p class="sub">{{'USER.DESCRIPTION' | translate}}</p>
|
|
|
|
<mat-progress-bar *ngIf="loading" color="accent" mode="indeterminate"></mat-progress-bar>
|
|
|
|
<span *ngIf="!loading && !user">{{ 'USER.PAGES.NOUSER' | translate }}</span>
|
|
|
|
<app-card title="{{ 'USER.PAGES.LOGINNAMES' | translate }}"
|
|
description="{{ 'USER.PAGES.LOGINNAMESDESC' | translate }}" *ngIf="user">
|
|
<div class="login-name-row" *ngFor="let login of user?.loginNamesList">
|
|
<span>{{login}}</span>
|
|
<button color="primary" [disabled]="copied == login"
|
|
[matTooltip]="(copied != login ? 'USER.PAGES.COPY' : 'USER.PAGES.COPIED' ) | translate"
|
|
appCopyToClipboard [valueToCopy]="login" (copiedValue)="copied = $event" mat-icon-button>
|
|
<i *ngIf="copied != login" class="las la-clipboard"></i>
|
|
<i *ngIf="copied == login" class="las la-clipboard-check"></i>
|
|
</button>
|
|
</div>
|
|
</app-card>
|
|
|
|
<div class="col" *ngIf="user">
|
|
<app-card class="app-card" title="{{ 'USER.PROFILE.TITLE' | translate }}">
|
|
<app-detail-form [genders]="genders" [languages]="languages" [username]="user.userName"
|
|
[user]="user.human" (changedLanguage)="changedLanguage($event)" (submitData)="saveProfile($event)">
|
|
</app-detail-form>
|
|
</app-card>
|
|
|
|
<app-card title="Theme" class="app-card theme-card">
|
|
<app-theme-setting></app-theme-setting>
|
|
</app-card>
|
|
</div>
|
|
|
|
<app-card *ngIf="user && user.human && user.id" title="{{ 'USER.EXTERNALIDP.TITLE' | translate }}"
|
|
description="{{ 'USER.EXTERNALIDP.DESC' | translate }}">
|
|
<app-external-idps [userId]="user.id" [service]="userService"></app-external-idps>
|
|
</app-card>
|
|
|
|
<app-card *ngIf="user" title="{{ 'USER.LOGINMETHODS.TITLE' | translate }}"
|
|
description="{{ 'USER.LOGINMETHODS.DESCRIPTION' | translate }}">
|
|
<div class="method-col">
|
|
<div class="method-row">
|
|
<span class="label">{{ 'USER.PROFILE.PASSWORD' | translate }}</span>
|
|
|
|
<span>*********</span>
|
|
<div class="actions">
|
|
<a [routerLink]="['password']" mat-icon-button>
|
|
<mat-icon class="icon">chevron_right</mat-icon>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="method-row">
|
|
<span class="label">{{ 'USER.EMAIL' | translate }}</span>
|
|
|
|
<ng-container *ngIf="!emailEditState; else emailEdit">
|
|
<div class="actions">
|
|
<span class="name">{{user?.human?.email}}</span>
|
|
<mat-icon class="icon" *ngIf="user?.human?.isEmailVerified" color="primary"
|
|
aria-hidden="false" aria-label="verified icon">
|
|
check_circle_outline</mat-icon>
|
|
<ng-container *ngIf="user?.human?.email && !user?.human?.isEmailVerified">
|
|
<mat-icon class="icon" color="warn" aria-hidden="false" aria-label="not verified icon">
|
|
highlight_off
|
|
</mat-icon>
|
|
<a class="verify" matTooltip="{{'USER.LOGINMETHODS.EMAIL.RESEND' | translate}}"
|
|
(click)="resendVerification()">{{'USER.LOGINMETHODS.RESENDCODE' | translate}}</a>
|
|
</ng-container>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<button (click)="emailEditState = true" mat-icon-button>
|
|
<mat-icon class="icon">edit</mat-icon>
|
|
</button>
|
|
</div>
|
|
</ng-container>
|
|
<ng-template #emailEdit>
|
|
<mat-form-field class="name">
|
|
<mat-label>{{ 'USER.EMAIL' | translate }}</mat-label>
|
|
<input *ngIf="user.human && user.human.email !== undefined && user.human.email !== null"
|
|
matInput [(ngModel)]="user.human.email" />
|
|
</mat-form-field>
|
|
<button (click)="emailEditState = false" mat-icon-button>
|
|
<mat-icon class="icon">close</mat-icon>
|
|
</button>
|
|
<button *ngIf="user.human" [disabled]="!user.human.email" class="submit-button" type="button"
|
|
color="primary" (click)="saveEmail()"
|
|
mat-raised-button>{{ 'ACTIONS.SAVE' | translate }}</button>
|
|
</ng-template>
|
|
</div>
|
|
|
|
<div class="method-row">
|
|
<span class="label">{{ 'USER.PHONE' | translate }}</span>
|
|
|
|
<ng-container *ngIf="!phoneEditState; else phoneEdit">
|
|
<div class="actions">
|
|
<span class="name">{{user?.human?.phone}}</span>
|
|
<mat-icon class="icon" *ngIf="user?.human?.isPhoneVerified" color="primary"
|
|
aria-hidden="false" aria-label="verified icon">
|
|
check_circle_outline</mat-icon>
|
|
<ng-container *ngIf="user?.human?.phone && !user?.human?.isPhoneVerified">
|
|
<mat-icon class="icon" color="warn" aria-hidden="false" aria-label="not verified icon">
|
|
highlight_off
|
|
</mat-icon>
|
|
<a class="verify" matTooltip="{{'USER.LOGINMETHODS.ENTERCODE_DESC' | translate}}"
|
|
(click)="enterCode()">{{'USER.LOGINMETHODS.ENTERCODE' | translate}}</a>
|
|
<a class="verify" matTooltip="{{'USER.LOGINMETHODS.PHONE.RESEND' | translate}}"
|
|
(click)="resendPhoneVerification()">{{'USER.LOGINMETHODS.RESENDCODE' | translate}}</a>
|
|
</ng-container>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<button (click)="phoneEditState = true" mat-icon-button>
|
|
<mat-icon class="icon">edit</mat-icon>
|
|
</button>
|
|
</div>
|
|
</ng-container>
|
|
|
|
<ng-template #phoneEdit>
|
|
<mat-form-field class="name">
|
|
<mat-label>{{ 'USER.PHONE' | translate }}</mat-label>
|
|
<input *ngIf="user.human && user.human.phone !== undefined && user.human.phone !== null"
|
|
matInput [(ngModel)]="user.human.phone" />
|
|
</mat-form-field>
|
|
<button (click)="phoneEditState = false" mat-icon-button>
|
|
<mat-icon class="icon">close</mat-icon>
|
|
</button>
|
|
<button *ngIf="user.human && user.human.phone" color="warn" (click)="deletePhone()"
|
|
mat-icon-button>
|
|
<i class="las la-trash"></i>
|
|
</button>
|
|
<button *ngIf="user.human" [disabled]="!user.human.phone" type="button" color="primary"
|
|
(click)="savePhone()" mat-raised-button>{{ 'ACTIONS.SAVE' | translate }}</button>
|
|
</ng-template>
|
|
</div>
|
|
</div>
|
|
</app-card>
|
|
|
|
<app-auth-user-mfa *ngIf="user" #mfaComponent></app-auth-user-mfa>
|
|
</div>
|
|
|
|
<div *ngIf="user" class="side" metainfo>
|
|
<div class="details">
|
|
<div class="row" *ngIf="user?.preferredLoginName">
|
|
<span class="first">Preferred Loginname:</span>
|
|
<span class="second"><span style="display: block;">{{user.preferredLoginName}}</span></span>
|
|
</div>
|
|
</div>
|
|
<ng-template appHasRole [appHasRole]="['user.membership.read']">
|
|
<app-memberships [user]="user"></app-memberships>
|
|
</ng-template>
|
|
|
|
<app-changes class="changes" [changeType]="ChangeType.MYUSER" [id]="user.id"></app-changes>
|
|
</div>
|
|
</app-meta-layout>
|