Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e3cc46

Browse files
Simple otp login concept
1 parent cab1bfc commit 6e3cc46

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎otp login.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import random
2+
gen=random.randint(000000,100000)
3+
username=input('Enter the username:')
4+
print('hello',username)
5+
print('Here is your OTP:',gen)
6+
password=input("Enter the otp to login:")
7+
if password==str(gen):
8+
print('Login success')
9+
else:
10+
password!=str(gen)
11+
print('login failed')

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /