mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-31 03:22:15 +00:00
fix: user init mail (for wrong email) (#891)
* add resendInitialMail * disable email notifications (when not initialised) * fix resend init mail * add tests * cleanup * cleanup * fix tests * add resend trigger, dialog * refactor contact component, add sendinitmail fnc * skip email if empty * reload user on phone email changes, i18n warndialog on dl * lint * rebuild mgmt proto * remove initial focus * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> Co-authored-by: Max Peintner <[email protected]> Co-authored-by: Fabi <[email protected]>
This commit is contained in:
co-authored by
Fabi
Max Peintner
parent
69c39b5eb2
commit
376fba72d8
@@ -249,6 +249,12 @@ export class GrpcAuthService {
|
||||
return this.grpcService.auth.changeMyUserEmail(req);
|
||||
}
|
||||
|
||||
public ResendMyEmailVerificationMail(): Promise<Empty> {
|
||||
return this.grpcService.auth.resendMyEmailVerificationMail(
|
||||
new Empty(),
|
||||
);
|
||||
}
|
||||
|
||||
public RemoveMyUserPhone(): Promise<Empty> {
|
||||
return this.grpcService.auth.removeMyUserPhone(
|
||||
new Empty(),
|
||||
|
||||
@@ -40,6 +40,7 @@ import {
|
||||
IdpSearchResponse,
|
||||
IdpUpdate,
|
||||
IdpView,
|
||||
InitialMailRequest,
|
||||
LoginName,
|
||||
LoginPolicy,
|
||||
LoginPolicyRequest,
|
||||
@@ -786,6 +787,16 @@ export class ManagementService {
|
||||
return this.grpcService.mgmt.resendEmailVerificationMail(req);
|
||||
}
|
||||
|
||||
public ResendInitialMail(userId: string, newemail: string): Promise<Empty> {
|
||||
const req = new InitialMailRequest();
|
||||
if (newemail) {
|
||||
req.setEmail(newemail);
|
||||
}
|
||||
req.setId(userId);
|
||||
|
||||
return this.grpcService.mgmt.resendInitialMail(req);
|
||||
}
|
||||
|
||||
public ResendPhoneVerification(id: string): Promise<any> {
|
||||
const req = new UserID();
|
||||
req.setId(id);
|
||||
|
||||
Reference in New Issue
Block a user