Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.

Commit c72c74e

Browse files
Fix-496
1 parent 8311be9 commit c72c74e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/js/login.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ cPass.addEventListener("submit", (e)=>{
6262
jsonp: "callback",
6363
crossDomain: true,
6464
success: (response) => {
65-
alert(response.message);
65+
displayNotification('success','Password changed',2000)
6666
cPass.style.display = "none";
6767
},
6868
error : () => {
69-
console.log(loginEP);
69+
displayNotification('error','Password not changed',2000)
7070
}
7171
});
7272
});

src/login.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<title>SUSI Login Portal</title>
55
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous">
66
<link rel="stylesheet" type="text/css" href="css/login.css">
7+
<link rel="stylesheet" type="text/css" href="css/notifications.min.css">
8+
79
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
810
</head>
911
<body>
@@ -65,7 +67,7 @@
6567
<input type="email" class="form-control fmargin" id="cemail" placeholder="Email">
6668
</div>
6769
<div class="form-group">
68-
<input type="password" class="form-control fmargin" id="cpassword" placeholder="Password">
70+
<input type="password" class="form-control fmargin" id="cpassword" placeholder="Current Password">
6971
</div>
7072
<div class="form-group">
7173
<input type="password" class="form-control fmargin" id="newPassword" placeholder="New Password">
@@ -85,5 +87,7 @@
8587
<script src="jquery/jquery-3.2.1.min.js"></script>
8688
<script src="bootstrap/bootstrap.min.js"></script>
8789
<script src="js/login.js"></script>
90+
<script src="js/notifications.min.js"></script>
91+
8892
</body>
8993
</html>

0 commit comments

Comments
 (0)