@riocrypto/common 1.0.1157 → 1.0.1158
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.
|
@@ -2,5 +2,5 @@ import { SecurityQuestion } from "../types/security-question";
|
|
|
2
2
|
export declare class SecurityQuestionClass {
|
|
3
3
|
private key;
|
|
4
4
|
constructor(key: SecurityQuestion);
|
|
5
|
-
getQuestionText(): "ERR" | "What city were you born in?" | "What was the brand of your first car?" | "What was the name of your first pet?" | "What was the name of your first school?";
|
|
5
|
+
getQuestionText(): "ERR" | "What is your mother's maiden name?" | "What city were you born in?" | "What was the brand of your first car?" | "What was the name of your first pet?" | "What was the name of your first school?";
|
|
6
6
|
}
|
|
@@ -7,7 +7,10 @@ class SecurityQuestionClass {
|
|
|
7
7
|
this.key = key;
|
|
8
8
|
}
|
|
9
9
|
getQuestionText() {
|
|
10
|
-
if (this.key === security_question_1.SecurityQuestion.
|
|
10
|
+
if (this.key === security_question_1.SecurityQuestion.mothersMaidenName) {
|
|
11
|
+
return "What is your mother's maiden name?";
|
|
12
|
+
}
|
|
13
|
+
else if (this.key === security_question_1.SecurityQuestion.cityOfBirth) {
|
|
11
14
|
return "What city were you born in?";
|
|
12
15
|
}
|
|
13
16
|
else if (this.key === security_question_1.SecurityQuestion.firstCarBrand) {
|