File tree 7 files changed +29
-1
lines changed
7 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ < p > header-bar-verify-email works!</ p >
2
+ < p *ngIf ="show "> Should display nag about verifying email!</ p >
Original file line number Diff line number Diff line change
1
+ import { Component , OnInit } from '@angular/core' ;
2
+ import { UserService } from '../../../../services/user.service' ;
3
+
4
+ @Component ( {
5
+ selector : 'app-header-bar-verify-email' ,
6
+ templateUrl : './header-bar-verify-email.component.html' ,
7
+ styleUrls : [ './header-bar-verify-email.component.scss' ]
8
+ } )
9
+ export class HeaderBarVerifyEmailComponent implements OnInit {
10
+
11
+ constructor ( private userService : UserService ) { }
12
+
13
+ ngOnInit ( ) : void {
14
+ }
15
+
16
+ get show ( ) : boolean {
17
+ return this . userService . user && ! this . userService . user . emailVerified ;
18
+ }
19
+
20
+ }
Original file line number Diff line number Diff line change 1
1
< header >
2
2
< app-header-bar-display-name > </ app-header-bar-display-name >
3
+ < app-header-bar-verify-email > </ app-header-bar-verify-email >
3
4
< app-header-bar-cookies *ngIf ="showCookieBar " (visibilityUpdated) ="showCookieBar = $event "> </ app-header-bar-cookies >
4
5
< app-header-bar-nav > </ app-header-bar-nav >
5
6
</ header >
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ import { HeaderBarUserComponent } from './_layout/header-bar/header-bar-user/hea
55
55
import { UnauthorizedComponent } from './unauthorized/unauthorized.component' ;
56
56
import { HeaderBarDisplayNameComponent } from './_layout/header-bar/header-bar-display-name/header-bar-display-name.component' ;
57
57
import { LoginComponent } from './auth/login/login.component' ;
58
+ import { HeaderBarVerifyEmailComponent } from './_layout/header-bar/header-bar-verify-email/header-bar-verify-email.component' ;
58
59
59
60
const appRoutes : Routes = [
60
61
{
@@ -143,6 +144,7 @@ const appRoutes: Routes = [
143
144
HeaderBarUserComponent ,
144
145
UnauthorizedComponent ,
145
146
HeaderBarDisplayNameComponent ,
147
+ HeaderBarVerifyEmailComponent ,
146
148
] ,
147
149
imports : [
148
150
BrowserModule ,
Original file line number Diff line number Diff line change @@ -51,10 +51,12 @@ export class SignUpComponent {
51
51
const result = await this . authService . performRegister ( this . data ) ;
52
52
53
53
if ( result . status === 'SIGNUP_SUCCESS' ) {
54
- //
54
+ this . showNextStep = true ;
55
55
}
56
56
} catch ( e : any ) {
57
57
console . log ( e ) ;
58
+ this . showNextStep = false ;
59
+ // TODO: show any errors
58
60
} finally {
59
61
this . loading = false ;
60
62
}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class User {
12
12
pronouns : string ;
13
13
languagesSpoken : string ;
14
14
mfaEnabled : boolean ;
15
+ emailVerified : boolean ;
15
16
country : string ;
16
17
roles : string [ ] ;
17
18
connections : SocialAccount [ ] ;
You can’t perform that action at this time.
0 commit comments