verben-authentication-ui 0.8.6 → 0.8.7
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.
|
@@ -10,7 +10,7 @@ import * as i7 from '@angular/common';
|
|
|
10
10
|
import { CommonModule } from '@angular/common';
|
|
11
11
|
import * as i1$2 from '@angular/router';
|
|
12
12
|
import { RouterLink } from '@angular/router';
|
|
13
|
-
import CryptoJS from 'crypto-js';
|
|
13
|
+
import CryptoJS$1 from 'crypto-js';
|
|
14
14
|
import { BehaviorSubject, Subject, debounceTime, distinctUntilChanged, takeUntil, lastValueFrom } from 'rxjs';
|
|
15
15
|
|
|
16
16
|
class ErrorResponse {
|
|
@@ -229,10 +229,10 @@ class ResetPasswordComponent {
|
|
|
229
229
|
}
|
|
230
230
|
var data = {
|
|
231
231
|
OldPassword: this.showOldPassword
|
|
232
|
-
? this.resetPasswordForm.controls['OldPassword'].value
|
|
232
|
+
? String(CryptoJS.MD5(this.resetPasswordForm.controls['OldPassword'].value))
|
|
233
233
|
: undefined,
|
|
234
|
-
Password: this.resetPasswordForm.controls['Password'].value,
|
|
235
|
-
ConfirmPassword: this.resetPasswordForm.controls['ConfirmPassword'].value,
|
|
234
|
+
Password: String(CryptoJS.MD5(this.resetPasswordForm.controls['Password'].value)),
|
|
235
|
+
ConfirmPassword: String(CryptoJS.MD5(this.resetPasswordForm.controls['ConfirmPassword'].value)),
|
|
236
236
|
};
|
|
237
237
|
this.onSubmit.emit(data);
|
|
238
238
|
var passwordRequest = {
|
|
@@ -913,8 +913,8 @@ class EncryptionService {
|
|
|
913
913
|
}
|
|
914
914
|
encryptData(data) {
|
|
915
915
|
try {
|
|
916
|
-
const encrypted = CryptoJS.AES.encrypt(data, CryptoJS.enc.Utf8.parse(this.keyString), {
|
|
917
|
-
iv: CryptoJS.enc.Utf8.parse(this.ivString),
|
|
916
|
+
const encrypted = CryptoJS$1.AES.encrypt(data, CryptoJS$1.enc.Utf8.parse(this.keyString), {
|
|
917
|
+
iv: CryptoJS$1.enc.Utf8.parse(this.ivString),
|
|
918
918
|
});
|
|
919
919
|
// Return the encrypted data as a string
|
|
920
920
|
return encrypted.toString();
|
|
@@ -927,11 +927,11 @@ class EncryptionService {
|
|
|
927
927
|
decryptData(data) {
|
|
928
928
|
try {
|
|
929
929
|
// Decrypt the data
|
|
930
|
-
const decrypted = CryptoJS.AES.decrypt(data, CryptoJS.enc.Utf8.parse(this.keyString), {
|
|
931
|
-
iv: CryptoJS.enc.Utf8.parse(this.ivString),
|
|
930
|
+
const decrypted = CryptoJS$1.AES.decrypt(data, CryptoJS$1.enc.Utf8.parse(this.keyString), {
|
|
931
|
+
iv: CryptoJS$1.enc.Utf8.parse(this.ivString),
|
|
932
932
|
});
|
|
933
933
|
// Convert the decrypted data to a UTF-8 string
|
|
934
|
-
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
934
|
+
return decrypted.toString(CryptoJS$1.enc.Utf8);
|
|
935
935
|
}
|
|
936
936
|
catch (error) {
|
|
937
937
|
console.error('Decryption error:', error);
|
|
@@ -1070,7 +1070,7 @@ class SignUpComponent {
|
|
|
1070
1070
|
Firstname: this.signUpForm.controls['Firstname'].value,
|
|
1071
1071
|
Lastname: this.signUpForm.controls['Lastname'].value,
|
|
1072
1072
|
Email: this.signUpForm.controls['Email'].value,
|
|
1073
|
-
Password: String(CryptoJS.MD5(this.signUpForm.controls['Password'].value)),
|
|
1073
|
+
Password: String(CryptoJS$1.MD5(this.signUpForm.controls['Password'].value)),
|
|
1074
1074
|
Terms: this.signUpForm.controls['Terms'].value,
|
|
1075
1075
|
Id: '61f7e48f0c651345677b7775',
|
|
1076
1076
|
CreatedAt: new Date(),
|
|
@@ -1393,7 +1393,7 @@ class SignInComponent {
|
|
|
1393
1393
|
data = {
|
|
1394
1394
|
...data,
|
|
1395
1395
|
MailAddress: this.loginForm.controls['Email'].value,
|
|
1396
|
-
Password: String(CryptoJS.MD5(this.loginForm.controls['Password'].value)),
|
|
1396
|
+
Password: String(CryptoJS$1.MD5(this.loginForm.controls['Password'].value)),
|
|
1397
1397
|
};
|
|
1398
1398
|
}
|
|
1399
1399
|
else if (type === MechanismType.Google || type === MechanismType.MicrosoftAD) {
|
|
@@ -5750,6 +5750,8 @@ class RoleControlComponent {
|
|
|
5750
5750
|
return undefined;
|
|
5751
5751
|
}
|
|
5752
5752
|
else {
|
|
5753
|
+
this.cardDataView.clearData();
|
|
5754
|
+
this.currentData = null;
|
|
5753
5755
|
this.pageState = res;
|
|
5754
5756
|
var result = res.Result;
|
|
5755
5757
|
this.setUpMappedData(result);
|