Skip to content

Commit 633a04e

Browse files
author
codeblogger
committed
Merge branch 'master' of https://github.com/guldus98/HTML-CSS
2 parents 1c4036d + cc17568 commit 633a04e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

JS Promise Login System/JS Promise Login System.html

+10-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h2 class="title text-center">LOGIN SYSTEM</h2>
2626

2727
<script>
2828

29-
$(document).ready(function(){
29+
$(document).ready(function(){
3030

3131
$("#but").click(function(){
3232

@@ -37,7 +37,15 @@ <h2 class="title text-center">LOGIN SYSTEM</h2>
3737
if(username == "truecodes" && password == "codeblogger"){
3838
resolve("Welcome " + username );
3939
}else{
40-
reject("Check your username and password again.")
40+
if(username == "truecodes" && password != "codeblogger"){
41+
reject("You entered the password incorrectly.")
42+
}
43+
else if(username != "truecodes" && password == "codeblogger"){
44+
reject("You entered the username incorrectly.")
45+
}else{
46+
reject("Please check your username and password again.")
47+
}
48+
4149
}
4250
})
4351

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Hello to everyone. I am Furkan. Codeblogger with Instagram name. I'll install small and mid-level projects
2+
on this github page. Especially, it will be a good resource for beginners and those who want to improve
3+
themselves( I hope ).
4+
I will also upload all of my code projects that I have added to my website to this github page.
5+
If you want to follow me from there my web address: truecodes.org

0 commit comments

Comments
 (0)