how to make simple login in python

Solutions on MaxInterview for how to make simple login in python by the best coders in the world

showing results for - "how to make simple login in python"
Lara
31 Feb 2018
1CorrectUsername = surname[0:3] + firstname[0:3]
2
3loop = 'true'
4while (loop == 'true'):
5    username = input("Please enter your username: ")
6    if (username == CorrectUsername):
7    	password = input("Please enter your password: ")
8        if (password == CorrectPassword):
9            print("Logged in successfully as ") + username
10            loop = 'false'
11        else:
12            print "Password incorrect!"
13    else:
14        print "Username incorrect!"
Matthew
06 May 2017
1username = input(' enter your username: ')
2if username == 'Put Your Username Here':#change this
3   print("checking username")
4   time.sleep(0.5)
5   print("username is right") 
6   password = input(' type your password: ')
7   if password == 'Put Your Password Here':#change this
8    time.sleep(0.5) 
9   else:
10    exit()
11else:
12 exit()    
Benjamin
05 Aug 2018
1from tkinter import *
2from functools import partial
3
4def validateLogin(username, password):
5	print("username entered :", username.get())
6	print("password entered :", password.get())
7	return
8
9#window
10tkWindow = Tk()  
11tkWindow.geometry('400x150')  
12tkWindow.title('Tkinter Login Form - pythonexamples.org')
13
14#username label and text entry box
15usernameLabel = Label(tkWindow, text="User Name").grid(row=0, column=0)
16username = StringVar()
17usernameEntry = Entry(tkWindow, textvariable=username).grid(row=0, column=1)  
18
19#password label and password entry box
20passwordLabel = Label(tkWindow,text="Password").grid(row=1, column=0)  
21password = StringVar()
22passwordEntry = Entry(tkWindow, textvariable=password, show='*').grid(row=1, column=1)  
23
24validateLogin = partial(validateLogin, username, password)
25
26#login button
27loginButton = Button(tkWindow, text="Login", command=validateLogin).grid(row=4, column=0)  
28
29tkWindow.mainloop()
queries leading to this page
python log in though web browserhow to login into a site using pythonlogin website with pythonpython login pagehow to make login page in pythonhow to develop a login screen using html and pythonpython website with loginhow to log into a page using pythonlogin page creation with pythonlogin via pythonhow to login into any website using pythonlogin to a website with pythonpython login into the sitepython login and register codepython simple login guilogin to any website using pythonlogin example using pythoncreate login with pythonmake a login page pythonlogin system in pythonpython program to automatically login in a websitewindows start program python on loginhow to login to a page pythonpython script to automatically loginsimple python login app with pythonlogin def pylogin to site using pythonpython code for loginhow to add login functionality pythonlogin system pythonlogin python getpython logarithm functionhow to develop a login screen using html and python and how to creae a login in pythonpython html loginlogin code pythonpython login applicationdesigning a login page in python using python how to make a login script in pythonlogin to website with pythoncreate a login pythonhow to get login pythonhow to make a working login program in pythonlogin to any website pythonpython log into websitesimple login for pythonhow to make simple login in pythonlogin to website using pythonpython 2c create a login website page in html 2c codehow to login in website using pythonhow to creae a login in python using ooplogin python request examplewhy using login in pythonhow to login using pythonhow to login on a website using pythonhow to make a login form in pythonlogin using pythonlogin in pythonlogin to form pythonloggin python login python code python 3simple login system for pythonlogin to website python python script loginhow to make a login system in python for beginnerscreating a program for account login pythonpython login authenticationlogin website pythonpython html login pagesimple login form in pythonpython web loginlogarithm in pythonpython loginmake login in site with python requesthow to create a login in pythonlogin page using pythonlogin form python codecreate a login page in pythonpython site with loginwhat is a login pythoncreate login form with pythonhow to login to site using pythongo to page using login pythonhow to create a login page in pythonpython script website loginpython code for login pagelogin example pythonhow to create login form using pythonhow to create a interactive login page in pythonpython logarithmpython login webpython script login to websitelogin any website using python how to make a login and username in pythonpython login scriptpython login fccpython login examplepython login page source codelogin w 2f auth pythonhtml login page using pythonlogin script in pythonpython simple login systemuse python to launch a program and loginpython simple loginpython 2c create login from webhow to login to website using pythonhow to check login service is working in a website using pythonpython site with login projectlogatithm in pythonhow to login into a website using pythonlogin python request exampleusing python to login to a websitepython login and signuppython make login programcode for login page pythonhow to automatically login to a website using pythonwrite a python script to login to websitemake a login project with pythonpython login codelogin code with pythonlogin system with pythonpython login system websitelogin page with pythonlogin webpage using pythonwebsite login page design with pythonhow do you create a login in pythonhow to make login in pythondesigning a login page in python using python command line log in pythonsimple login page pythonhow to make a login system in pythonsimple login page with pythonhow to create a login program in pythonhow to create login page inpythonpython login to websitepython login page codehow to login to website pythonpython code login to websitelogin form pythonm source code 3e 3cpython login window examplehow to make a simple website wiht a login with pythonpython program to login to website python login to websitelogin authentication in pythonhow to create login page using pythonlogin to page python without login pagelogin page pythonpython login code 5ccreate python login pagecreating a login system in pythonlogin to site with pythonlogin python codehow to login website using pythonlogin form in python uicreate simple python loginwindows login with pythonsimple login page in pythonlogin web pages using pythonpython login source codehow to code a login page in pythonmaking a login function for pythonhow to write on website login with python scriptmake login request using pythonlogin page code in pythonsimple login system pythonhow to login in a web using the api pythonhow to create login page in pythonlogin to a website using pythonhow to add login functionality in python classpyhon login formlogin page in pythonpython login formcreate login page pythonpython login page designlogin pythonhow to make a login in pythonsimple login application using pythonhow to use python to log into a websitehow to create a simple login program in pythonmake login request pythonhtml login with pythonlogin form in python guiinteract with login page pythoncreate python login to websitelogin to api using pythonhow to log in pythonlogin page code for pythoncreate login page in pythonsimple login pythonlogin page python codeuser login code in pythoncreate login page using pythonhow to login into a website with pythonsimple python login systemlogin pylog into with python which method we use for login function in pythonlogin program in pythonhow to make a login screen in pythonlogin form pythonpython login as apisimple python logincreate basic login with html and pythoncan you make a login page with pythonhow to login web pytthonlogin into website using pythonpython make request on login pagecode login pythonhow to login into a web page using pythohow to login to a website using pythonlogin code in pythonpython login to a websitemaking login program with pythonsource of the login form pythonlogin auth code in pythonpython url html login pagepython login website scriptcode for automation a login page using pythonhow to login to a site in pythonloguru pythonlogin into the website using pythonlogin to page pythonlogin into site in pythonhow to create an interactive login in pythonbasic login pythonpython login websitelogin using python3login to page with pythonhow to make simple login in python