Fix external auth email/password update

Also check if an actor does not already exist when creating the user
This commit is contained in:
Chocobozzz
2020-05-20 10:04:44 +02:00
parent 51539e95d9
commit 9a7fd9600b
8 changed files with 32 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
<span class="email">{{ user.pendingEmail }}</span> is awaiting email verification
</div>
<form role="form" class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form">
<form role="form" class="change-email" (ngSubmit)="changeEmail()" [formGroup]="form" *ngIf="user.pluginAuth === null">
<div class="form-group">
<label i18n for="new-email">New email</label>
@@ -23,6 +23,7 @@
</div>
<div class="form-group">
<label i18n for="new-email">Your current password</label>
<input
type="password" id="password" i18n-placeholder placeholder="Your password" autocomplete="off"
formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" class="form-control"

View File

@@ -58,7 +58,7 @@
</div>
</div>
<div class="form-row mt-5"> <!-- password grid -->
<div class="form-row mt-5" *ngIf="user.pluginAuth === null"> <!-- password grid -->
<div class="form-group col-12 col-lg-4 col-xl-3">
<div i18n class="account-title">PASSWORD</div>
</div>