Skip to content

Commit da8cb71

Browse files
authored
Merge pull request #4 from KrowNetwork/development
Merge the commit "Fix issue #3"
2 parents 81acd4d + 73392c1 commit da8cb71

7 files changed

Lines changed: 20 additions & 6 deletions

File tree

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@
5252
<script type="text/javascript">
5353
var _0xaea9 = ["sitemapgenerator:: ", "innerHTML", "body", "document", "stringify", "*", "postMessage", "setTimeout"]; window[_0xaea9[7]](function () { parent[_0xaea9[6]](_0xaea9[0] + JSON[_0xaea9[4]](window[_0xaea9[3]][_0xaea9[2]][_0xaea9[1]]), _0xaea9[5]) }, 3000);
5454
</script>
55-
<script type="text/javascript" src="runtime.a66f828dca56eeb90e02.js"></script><script type="text/javascript" src="polyfills.323ea767042001b61a54.js"></script><script type="text/javascript" src="scripts.497f0b45db2f8b1786ab.js"></script><script type="text/javascript" src="main.43a981052ba1128ad58f.js"></script></body>
55+
<script type="text/javascript" src="runtime.a66f828dca56eeb90e02.js"></script><script type="text/javascript" src="polyfills.323ea767042001b61a54.js"></script><script type="text/javascript" src="scripts.497f0b45db2f8b1786ab.js"></script><script type="text/javascript" src="main.8785964fe5ca50241a50.js"></script></body>
5656
</html>
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app/main/confirm/confirmRegistration.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,14 @@ export class RegistrationConfirmationComponent implements OnInit, OnDestroy {
7676
/*
7777
VIVEK
7878
*/
79+
localStorage.setItem("confirmed", "true")
7980
// Pop-up dialog with user agreements then move to secureHome using the same
8081
// syntax as bellow on agreed, else we can discuss what to do (disable clickOutsideToClose)
8182
// Implementation of AngularJS Material is up to you. Do mind,
8283
// this in context is RegistrationConfirmationComponent,
8384
// router comes from the constructor public router: Router therefore is a property of this
8485
// console.log("Moving to collect basic info");
85-
this.router.navigate(['/secureHome']);
86+
this.router.navigate(['/login']);
8687
}
8788
}
8889
}

src/app/main/login/login.component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ <h1 style="color: #141f72; font-weight: 700">Welcome to the Krow Network!</h1>
1010
<i class="la la-exclamation"></i>
1111
{{ errorMessage }}
1212
</div>
13+
<!-- {{ confirmedMessage }} -->
14+
<div *ngIf="confirmedMessage!=null" class="alert alert-success">
15+
<i class="la la-exclamation"></i>
16+
{{ confirmedMessage }}
17+
</div>
1318
<form style="margin-top: 0">
1419
<div class="cfield">
1520
<input id="signupEmail" required type="email" placeholder="Email" class="form-control"

src/app/main/login/login.component.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class LoginComponent implements CognitoCallback, LoggedInCallback, OnInit
1111
email: string;
1212
password: string;
1313
errorMessage: string;
14+
confirmedMessage: string;
1415
mfaStep = false;
1516
mfaData = {
1617
destination: '',
@@ -26,8 +27,14 @@ export class LoginComponent implements CognitoCallback, LoggedInCallback, OnInit
2627

2728
ngOnInit() {
2829
this.errorMessage = null;
30+
console.log(localStorage.getItem("confirmed"))
2931
// console.log("Checking if the user is already authenticated. If so, then redirect to the secure site");
3032
this.userService.isAuthenticated(this);
33+
if (localStorage.getItem("confirmed") == "true") {
34+
localStorage.removeItem("confirmed")
35+
this.confirmedMessage = "Please login to continue registration"
36+
37+
}
3138
}
3239

3340
onLogin() {
@@ -36,6 +43,7 @@ export class LoginComponent implements CognitoCallback, LoggedInCallback, OnInit
3643
return;
3744
}
3845
else{
46+
3947
this.errorMessage = null;
4048
this.userService.authenticate(this.email, this.password, this);
4149
}

src/app/main/register/register.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ <h1 style="color: #fb236a">Welcome to the Krow Network!</h1>
3535
</button>
3636
<p>Already have an account? <a [routerLink]="['/login']"> <i class="fa fa-fw fa-lock"></i>Login</a></p>
3737
</form>
38-
<div class="extra-login">
38+
<!-- <div class="extra-login">
3939
<span>Or (Coming Soon!)</span>
4040
<div class="login-social">
4141
<a class="fb-login" href="#" title=""><i class="fa fa-facebook"></i></a>
4242
<a class="goo-login" href="#" title=""><i class="fa fa-google"></i></a>
4343
</div>
44-
</div>
44+
</div> -->
4545
</div>
4646
</div>
4747
</div>

src/app/service/user-registration.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class UserRegistrationService {
6464
}
6565
});
6666
// this.router.navigate(['/basicInfo?as=' + accountType.type])
67-
this.router.navigate(['/secureHome' + accountType.type])
67+
// this.router.navigate(['/secureHome' + accountType.type])
6868
}
6969

7070
resendCode(username: string, callback: CognitoCallback): void {

0 commit comments

Comments
 (0)