@annalib/anna-cognito-lib 2.2.21 → 2.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/anna-login/anna-login.component.mjs +10 -5
- package/esm2020/lib/components/forgot-password/forgot-password.component.mjs +10 -5
- package/esm2020/lib/constants/loginConstant.mjs +4 -2
- package/esm2020/lib/services/auth.service.mjs +7 -3
- package/fesm2015/annalib-anna-cognito-lib.mjs +25 -11
- package/fesm2015/annalib-anna-cognito-lib.mjs.map +1 -1
- package/fesm2020/annalib-anna-cognito-lib.mjs +25 -11
- package/fesm2020/annalib-anna-cognito-lib.mjs.map +1 -1
- package/lib/components/anna-login/anna-login.component.d.ts +3 -1
- package/lib/components/forgot-password/forgot-password.component.d.ts +3 -1
- package/lib/constants/loginConstant.d.ts +3 -1
- package/package.json +1 -1
|
@@ -2,14 +2,16 @@ import { FormBuilder, FormGroup } from "@angular/forms";
|
|
|
2
2
|
import { LoginConstant } from "../../constants/loginConstant";
|
|
3
3
|
import { AnnaLibAuthService } from '../../services/auth.service';
|
|
4
4
|
import { IConfigService } from '../../config/config-service.token';
|
|
5
|
+
import { ISSOLoginService } from "../../config/sso-login-service.token";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AnnaLoginComponent {
|
|
7
8
|
authService: AnnaLibAuthService;
|
|
8
9
|
private fb;
|
|
9
10
|
consumingProjectConfigService: IConfigService;
|
|
11
|
+
consumingProjectSSOLoginService: ISSOLoginService;
|
|
10
12
|
loginForm: FormGroup;
|
|
11
13
|
constants: typeof LoginConstant;
|
|
12
|
-
constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService);
|
|
14
|
+
constructor(authService: AnnaLibAuthService, fb: FormBuilder, consumingProjectConfigService: IConfigService, consumingProjectSSOLoginService: ISSOLoginService);
|
|
13
15
|
ngOnInit(): void;
|
|
14
16
|
onIntialiseForm(): void;
|
|
15
17
|
OnLogin(): void;
|
|
@@ -6,6 +6,7 @@ import { LoginConstant } from "../../constants/loginConstant";
|
|
|
6
6
|
import { Router } from '@angular/router';
|
|
7
7
|
import { IConfigService } from '../../config/config-service.token';
|
|
8
8
|
import { IAuthService } from "../../config/auth-service.token";
|
|
9
|
+
import { ISSOLoginService } from "../../config/sso-login-service.token";
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
declare type passwordType = {
|
|
11
12
|
value: string;
|
|
@@ -18,6 +19,7 @@ export declare class ForgotPasswordComponent implements OnInit {
|
|
|
18
19
|
private router;
|
|
19
20
|
consumingProjectConfigService: IConfigService;
|
|
20
21
|
consumingProjectAuthService: IAuthService;
|
|
22
|
+
consumingProjectSSOLoginService: ISSOLoginService;
|
|
21
23
|
errorMessage: string;
|
|
22
24
|
verifyRegisteredEmail: FormGroup;
|
|
23
25
|
passwordNotMatching: boolean;
|
|
@@ -26,7 +28,7 @@ export declare class ForgotPasswordComponent implements OnInit {
|
|
|
26
28
|
confirmPassword: passwordType;
|
|
27
29
|
infoMessageToRedirectLogin: string;
|
|
28
30
|
isLoading: boolean;
|
|
29
|
-
constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService, consumingProjectAuthService: IAuthService);
|
|
31
|
+
constructor(authService: AnnaLibAuthService, fb: FormBuilder, toastr: ToastrService, router: Router, consumingProjectConfigService: IConfigService, consumingProjectAuthService: IAuthService, consumingProjectSSOLoginService: ISSOLoginService);
|
|
30
32
|
ngOnInit(): void;
|
|
31
33
|
onIntialiseForm(): void;
|
|
32
34
|
onUpdateForm(): void;
|
|
@@ -16,6 +16,7 @@ export declare class LoginConstant {
|
|
|
16
16
|
static readonly specialCharacter = "1 Special character";
|
|
17
17
|
static readonly passwordNotMatching = "The passwords do not match. Please try again.";
|
|
18
18
|
static readonly userNamePasswordIncorrect = "Incorrect username or password";
|
|
19
|
+
static readonly userCodePasswordIncorrect = "Incorrect usercode or password";
|
|
19
20
|
static readonly userNotFound = "No registered user found";
|
|
20
21
|
static readonly loginAgain: string;
|
|
21
22
|
static readonly firstTimeLoginUserTempPasswordMsg = "You are logging in for the first time. Kindly use the temporary password provided in the welcome email, to login to your account. ";
|
|
@@ -33,7 +34,8 @@ export declare class LoginConstant {
|
|
|
33
34
|
static readonly sessionExpired = "The session has expired. Please try again.";
|
|
34
35
|
static readonly sessionExpiredError = "Your session has expired. Please login again";
|
|
35
36
|
static readonly forgotPasswordHeading = "Forgot your password?";
|
|
36
|
-
static readonly
|
|
37
|
+
static readonly PleaseEnterYourUsernameMessage = "Please enter your username.";
|
|
38
|
+
static readonly PleaseEnterYourUsercodeMessage = "Please enter your usercode.";
|
|
37
39
|
static readonly forgotPasswordButton: string;
|
|
38
40
|
static readonly apiFailErrorMessage = "Unable to connect to server right now. Please try after some time.";
|
|
39
41
|
static readonly setNewPasswordUrl = "/set-new-password";
|