import random, webbrowser
username = "bibek123"
password = "hello@123"
print("Welcome to the login page")
input_username = input("Enter your username: ")
input_password = input("Enter your password: ")
if username == input_username and password == input_password:
print("Login successful")
num = random.randint(1000, 9999)
print("Your OTP NUMBER IS: " , num)
input_otp = int(input("Enter the OTP you have received: "))
if input_otp == num:
webbrowser.open("https://www.w3schools.com")
print("OTP verified successfully")
# print("Current date and time:", datetime.datetime.now())
print("Welcome to dashboard")
else:
print("Invalid OTP, please try again.")
else:
print("Invalid username or password")
COPY PASTE IT