Skip to content

Commit 62cc41a

Browse files
authored
Update auth.rb
1 parent 0d23dc8 commit 62cc41a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

auth.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
{username: 'dpk', password: 'password3'},
55
]
66
puts "welcome to the authenticatior"
7-
20.times {print "-"}
8-
puts "\nthis program will take inout from the user and compare password"
9-
# puts "if password is correct, you will be get back the user objects"
107

118
def authentication_user(username, password, listOfUsers)
129
listOfUsers.each do |user|
@@ -15,7 +12,7 @@ def authentication_user(username, password, listOfUsers)
1512
end
1613
end
1714
#no need to write the return in the end
18-
return "Credentials were not correct"
15+
"Credentials were not correct"
1916
end
2017

2118

0 commit comments

Comments
 (0)