Skip to content

Commit 673e62e

Browse files
committed
Errors modified
1 parent 67d8b16 commit 673e62e

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

angular-awesome-error.js

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,26 @@
3030
</div>',
3131
link: function(scope) {
3232
scope.errorMessage = {
33-
"INVALID_EMAIL_OR_PASSWORD" : "Sorry, Invalid Email or Password.",
33+
"INVALID_EMAIL_OR_PASSWORD" : "Sorry, Invalid Email or Password.",
3434
"USERNAME_OR_PASSWORD_NOT_CORRECT" : "Sorry, Username or Password is not correct.",
3535
"USER_ALREADY_EXISTS" : "Sorry, User already exists.",
36-
"MISSING_NICKNAME_PARAMETER" : "Sorry, Missing Nickname",
36+
"MISSING_USERNAME_PARAMETER" : "Sorry, Missing Username",
3737
"MISSING_PASSWORD_PARAMETER" : "Sorry, Missing Password.",
3838
"MISSING_USERNAME" : "Sorry, Missing Username.",
3939
"INVALID_EMAIL" : "Sorry, Not a valid Email.",
40-
"EMAIL_REQUIRED" : "Sorry, Email required"
41-
};
40+
"EMAIL_REQUIRED" : "Sorry, Email required",
41+
"USERNAME_PATTERN_ERROR" : "Username should contain alphabets and number length between 3-15",
42+
"EMAIL_PATTERN_ERROR" : "Not a valid email",
43+
"PASSWORD_LENGTH_ERROR" : "Password length shouble be between 7 and 20",
44+
"useremail_REQUIRED" : "Email Required",
45+
"username_REQUIRED" : "Username Required",
46+
"password_REQUIRED" : "Password Required",
47+
"useremail_INVALID" : "Invalid Email",
48+
"username_INVALID_PATTERN" : "Username should contain alphabets and number length between 3-15",
49+
"email_INVALID" : "Invalid Email",
50+
"email_REQUIRED" : "Email Required",
51+
"password_LENGTH_PATTERN" : "Password length shouble be between 7 and 20",
52+
"USERNAME_ALREADY_TAKEN" : "Sorry, Username already taken" };
4253

4354
scope.$on('show error', function (args) {
4455
scope.showerr = true;

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-errors-directive",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"main": "angular-awesome-error.js",
55
"ignore": [
66
"**/.*",

0 commit comments

Comments
 (0)