python login system tutorial (For beginners) Python Tutorial

Поделиться
HTML-код
  • Опубликовано: 14 окт 2024
  • In this Video I talk and show how to create a basic login system using python, this login system is not a GUI login system which means that it is non graphical and is not a python GUI app, However we save the usernames and passwords using simple text files.
    🎁Don't forget to like and subscribe🎁
    Get the code here: github.com/cod...
    🎨Video Tags:🎨
    python,python programming,freecodecamp python,learn python,programming language for beginners,python programming tutorial,python beginner projects,python beginner projects tutorial,python beginner programs, python beginner project ideas,python login system,python login form,python login project,python login system using text file,python login,python login page,python login system tutorial

Комментарии • 123

  • @codewithvic9065
    @codewithvic9065  3 года назад +2

    Learn To Become A Professional Developer With Certificate:
    coursecareers.com/a/c1a73d3a
    Download login system code here : github.com/codewithvic/Login_System/tree/main

  • @osiris5449
    @osiris5449 2 года назад +1

    Only forgot a logout function. But, thanks for being the only person to read and write to a file; this is pure gold.

  • @shailja4264
    @shailja4264 3 года назад +10

    Thank you very very much! I swear this was the most helpful tutorial for what I was looking for.

    • @duncancalvin3158
      @duncancalvin3158 3 года назад

      I guess it is kind of randomly asking but do anyone know a good place to stream newly released tv shows online ?

  • @LifeOfChutki
    @LifeOfChutki 3 года назад +6

    Hey ...., Thank you so much for this code it helps me alot ,my 1st project on this password check based stuck from 2weeks ,and finally it will complete soon by your help ❤️

  • @emilfuhrmann5406
    @emilfuhrmann5406 2 года назад +1

    How can you share the username and password data with other PC's running this application? Any particular module or solution that would be useful?

  • @PranDaMan_
    @PranDaMan_ 3 года назад +1

    Helloooo
    One part did not work when I entered a wrong login, it said granted was not defined but I global granted so I just used try and except
    Otherwise great video
    Great explanation

    • @codewithvic9065
      @codewithvic9065  3 года назад

      Here is a link to the code: github.com/codewithvic/Login_System/tree/main

  • @maxstreet
    @maxstreet 3 года назад +2

    Login.py", line 45, in
    access(option)
    line 30, in access
    login(name,password)
    line 9, in login
    a,b = i.split(",")
    ValueError: not enough values to unpack (expected 2, got 1)
    help bro when trying to login after registering

  • @phobists7802
    @phobists7802 3 года назад +6

    for the a , b = i.split()
    I keep getting ValueError: not enough values to unpack (expected 2, got 1)
    plz help

    • @PranDaMan_
      @PranDaMan_ 3 года назад

      Change some stuff in textwindow

    • @geco3335
      @geco3335 3 года назад +3

      maybe i am late but probabily is because u have the first line in the text file without text

    • @codewithvic9065
      @codewithvic9065  3 года назад +1

      Here is the link to the code github.com/codewithvic/Login_System/tree/main
      try using a,b = i.split(","). :)

    • @ruthannabelle8520
      @ruthannabelle8520 3 года назад

      @@codewithvic9065 Hi it still does not work.

    • @kratikadhakare8241
      @kratikadhakare8241 2 года назад

      Same problem I am facing plz resolve this soon suggest us what can we do to work it...

  • @foodstrucktamil6316
    @foodstrucktamil6316 3 года назад

    Thank you so much, coz I was searching for this program without tkinter ..this video is really helpful

  • @leeroy14r60
    @leeroy14r60 3 года назад +1

    Thank you for the video, now time for me to SUFFER and face my FEARS

    • @codewithvic9065
      @codewithvic9065  3 года назад +1

      I'm glad it was helpful to you. Consider subscribing to help me reach my 1000 subscriber goal.

  • @heavydremer8716
    @heavydremer8716 2 года назад

    Thank u man this helped alot. Thanks for showing us how u problem solve too. Helps alot for a beginner

  • @vaibhavnegi3656
    @vaibhavnegi3656 Год назад +1

    a,b= i.split(",")
    gives a ValueError: not enough values to unpack(expected 2,got 1)

  • @eyemissmyunclecharles7185
    @eyemissmyunclecharles7185 4 года назад +5

    Thanks for the vid, fairly easy to follow along. I'm trying to add a way to check if a username is already taken.

    • @thelaziestdev3415
      @thelaziestdev3415 3 года назад

      you can make a function that has a for loop that checks through each line of the file and sees if it has that username in any of them, if so it will return True and if the username doesnt exist you can return False.

  • @varunshenbagaraj
    @varunshenbagaraj 2 года назад +2

    i am getting a value error i.e. "not enough values to unpack (expected 2, got 1)". Please help.

    • @iohn8688
      @iohn8688 2 года назад

      Delete the first empty space in the text file.. And you can remove the
      from the first registered user so it won't skip a line the first time

  • @cason8342
    @cason8342 2 года назад

    This is a very helpful video but one thing is that some trackback error is showing even with your code please tell me how to fix that

  • @will36735
    @will36735 Год назад

    Helped me out on my assignment, thanks king

  • @minstreltokunbo
    @minstreltokunbo 3 года назад

    Thank you. What about writing scripts for "Forgot Password" or "Forgot Username".

  • @panva9948
    @panva9948 3 года назад +1

    Ive had to remake this 3 times because everytime I close it and want to keep working on it I can never find it and open it.

  • @majinbuu6361
    @majinbuu6361 2 года назад

    How would I go about adding more to register ? I wanted to add email and address but I’m getting an error. Can you please help me thanks 🙏

  • @cheetwtf7117
    @cheetwtf7117 3 года назад +2

    File "c:\Users\Charlie\Desktop\logging system\main.py", line 43, in
    access(option)
    NameError: name 'option' is not defined PLS HELP!!

    • @codewithvic9065
      @codewithvic9065  3 года назад +1

      I'll be making a video soon on error handling in python.

  • @pritimeggi5245
    @pritimeggi5245 3 года назад

    Hi there,
    I had a question so in the beginning 3:41 why do you have to put the exclamation! mark after the option ?

  • @salesspar6787
    @salesspar6787 2 года назад

    Thanks for the helpful tutorial. i have an issue with connecting to the text file. The program obtains input from me and shows the message successfully login but unable to update the text file.

  • @HaiderAli-nm1kj
    @HaiderAli-nm1kj 2 года назад +1

    Thank you bro for the tutorial really good explaining

  • @vardansharmaveins1606
    @vardansharmaveins1606 2 года назад

    Any way to use firebase in python 2.7 without any module please reply

  • @subverz
    @subverz 3 года назад +1

    Can you make a video on a button in python downloading a file?

  • @shivamdubey4783
    @shivamdubey4783 3 года назад

    thanks mate really helpful can we make multiuser application from this also

  • @Noel_Jaco8
    @Noel_Jaco8 2 года назад

    Thanks Victor. Great tutorial!

  • @erwinpotters6726
    @erwinpotters6726 3 года назад +1

    thank you for the good explanation, another step further in Python!

  • @Pyropuffer1
    @Pyropuffer1 2 года назад

    THANK YOU SOOOOO MUCH BRO, I LOVE YOU❤️❤️❤️

  • @KasOfficial04
    @KasOfficial04 3 года назад +1

    If you don't add the line "victo, 123", you will get 1 space error and it will fail
    Because it has a space

    • @codewithvic9065
      @codewithvic9065  3 года назад

      You can play around with it and see what works best for you.
      To avoid all these you can make use of databases for storing data. Subscribe and watch for my next tutorail on python Databases.

  • @karanpk1651
    @karanpk1651 2 года назад

    Thanks from Kerala, India🇮🇳. I think we need to add forgot password here.. 👍

  • @parthiv.a5188
    @parthiv.a5188 3 года назад +1

    hey for me login is not working its saying
    Traceback (most recent call last):
    File "####", line 47, in
    acess(option)
    File "###y", line 32, in acess
    login(name,password)
    File "###, line 9, in login
    for i in file:
    io.UnsupportedOperation: not readable
    >>>
    ### is my drive name and admin so im hiding it

  • @natyrrap
    @natyrrap 3 года назад

    Hello! How do I link the grant to my main program?

  • @musictheory137
    @musictheory137 2 года назад

    It really helps bro...best explaination

  • @mamatha1850
    @mamatha1850 3 года назад +1

    tank you.give many tutorials like this

  • @kristinemaehernandez5386
    @kristinemaehernandez5386 3 года назад

    What is the use of mainwindow on the first part of the video?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      This was just to bring a GUI like example of what we we're about to create.
      You can always implement the code into your GUI application.

  • @rajajrt_
    @rajajrt_ 3 года назад +4

    thank you, this is so helpful

  • @fighterxofficialYT
    @fighterxofficialYT 3 года назад +2

    tysm working u just earned a sub u deserve more and a like too

  • @joezarzano8645
    @joezarzano8645 3 года назад

    Did not get an error but for some reason when I run the code with all the file functions, it won’t transport the data I entered into the file I created. Can someone help?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      Download the code from GitHub provided in the description and go through to see where the bug is, hope this helps :)

  • @nuravivah3894
    @nuravivah3894 2 года назад

    hi. when i try the login, it says error like this
    ValueError: not enough values to unpack (expected 2, got 1)
    do you know how to fix it?

    • @maxstreet
      @maxstreet 2 года назад

      Open txt file, clear the empty spaces above, it'll work

    • @shivtanuray3151
      @shivtanuray3151 Год назад

      @@maxstreet thanks bro you resolved my problem

  • @Szymon176
    @Szymon176 3 года назад +3

    Thank you for the tutorial :)

  • @sairsc8043
    @sairsc8043 3 года назад +2

    Can u show dis with SQL database?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      I'll be creating videos on SQL and Database management soon.

  • @certifiedtoxicity7123
    @certifiedtoxicity7123 4 года назад +11

    source code?

    • @codewithvic9065
      @codewithvic9065  3 года назад +1

      github.com/codewithvic/Login_System/tree/main

    • @certifiedtoxicity7123
      @certifiedtoxicity7123 3 года назад +1

      @@codewithvic9065Thanks for the sauce after nearly a year . I was waiting

  • @bestclub162
    @bestclub162 3 года назад +3

    God bless you u saved me

  • @alifahed9167
    @alifahed9167 3 года назад

    You are a King,
    Thank you so much!

  • @wizahsimbeye3227
    @wizahsimbeye3227 Год назад

    Do you have the written code of this mate?

  • @subhamsatyakammohanty6
    @subhamsatyakammohanty6 3 года назад +1

    Hey i expected not enough value to unpack

    • @codewithvic9065
      @codewithvic9065  3 года назад

      I'll be making a video on error handling soon.

  • @2tonejankk
    @2tonejankk 3 года назад

    after i login it closes the cmd right after any help?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      Download the source code provided in the description and compare with your current code. Also watch out for my next video on "python error handling"

    • @2tonejankk
      @2tonejankk 3 года назад

      @@codewithvic9065 I did, when i ran your code too after I logged in it kept closing, no error what soever when i ran it in idle it printer that I logged in succesfully but then closed, is there any dependinces that needed to be installed beforehand?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      @@2tonejankk Go ahead and also download the text file or create a new text file in the same directory as the code and name the text file the same name as stated on the tutorial video. I hope this helps :)

  • @dreiigHiveSGClips
    @dreiigHiveSGClips 3 года назад +1

    thx explained it very good

  • @saket1145
    @saket1145 2 года назад

    Thank you very much

  • @gustavrepa7109
    @gustavrepa7109 2 года назад

    Great video!

  • @alltherosesarerosie
    @alltherosesarerosie 2 года назад

    omg , thank you soo much 😇

  • @泽雨-h3d
    @泽雨-h3d 2 года назад

    thank you very much!

  • @etg9080
    @etg9080 2 года назад

    Great.

  • @xtravz8858
    @xtravz8858 3 года назад

    Thank you so much man

  • @ekramquraan3610
    @ekramquraan3610 2 года назад

    can you give me the source code please?

  • @tianlucaskirbis7676
    @tianlucaskirbis7676 2 года назад

    Pure gold.

  • @FIRE_EVERYTHING
    @FIRE_EVERYTHING 3 года назад +1

    Great tutorial!

    • @codewithvic9065
      @codewithvic9065  3 года назад

      Thanks alot.

    • @espoirbrother3627
      @espoirbrother3627 3 года назад

      @@codewithvic9065 doesnt work tho

    • @jelilah2945
      @jelilah2945 3 года назад

      @@espoirbrother3627 me neither, came up with something @code with vic ?

  • @nabaaadel537
    @nabaaadel537 3 года назад +2

    Thank you so muchhh

  • @jcb9284
    @jcb9284 3 года назад +2

    'loggin' epic spelling

  • @doublethed2076
    @doublethed2076 3 года назад +1

    Can i have the source code bro?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      Will add that to the video description shortly :)

    • @wwavy8413
      @wwavy8413 3 года назад

      @@codewithvic9065 hurry up man

    • @codewithvic9065
      @codewithvic9065  3 года назад

      @@wwavy8413 github.com/codewithvic/Login_System/tree/main

    • @codewithvic9065
      @codewithvic9065  3 года назад

      github.com/codewithvic/Login_System/tree/main

  • @martinhassanpour3420
    @martinhassanpour3420 3 года назад +2

    Thanks for the video!

  • @naresh4108
    @naresh4108 3 года назад

    Source code please?

    • @codewithvic9065
      @codewithvic9065  3 года назад

      github.com/codewithvic/Login_System/tree/main

  • @amantedecapaldi4037
    @amantedecapaldi4037 3 года назад

    I needed a bit help .... I want to combine 2 of my projects one being tkinter-mysql login system and a python-mysql banking management system so the trouble I am having is how can I connect those two codes in the sense that when I login to the tkinter-mysql one I can get into the python-mysql one
    Here is the GitHub of mine
    github.com/RudradevArya/Banking-management-system-using-Tkinter-MySQL-Python-

    • @codewithvic9065
      @codewithvic9065  3 года назад

      If I understand you, you mean you have two databases right??

    • @amantedecapaldi4037
      @amantedecapaldi4037 3 года назад

      @@codewithvic9065 no I have 1 database "bankdb2" which has 2 tables "login" and "bank"

  • @dafindafwatulyudha2449
    @dafindafwatulyudha2449 3 года назад

    source code plz :)

    • @codewithvic9065
      @codewithvic9065  3 года назад

      github.com/codewithvic/Login_System/tree/main

  • @elhaambasheerch7058
    @elhaambasheerch7058 3 года назад

    Bruh, source code ??

    • @codewithvic9065
      @codewithvic9065  3 года назад

      github.com/codewithvic/Login_System/tree/main

  • @QuantumInsaanEdits
    @QuantumInsaanEdits 3 года назад

    blah blah theres no code given i hate this tutorial i was kidding i liked it

    • @codewithvic9065
      @codewithvic9065  3 года назад

      Sorry, have been busy with school work.
      here is the link to the code: github.com/codewithvic/Login_System/tree/main

    • @QuantumInsaanEdits
      @QuantumInsaanEdits 3 года назад

      @@codewithvic9065 No problem

    • @QuantumInsaanEdits
      @QuantumInsaanEdits 3 года назад

      @@codewithvic9065 Hey no prob buddy i was just kidding i wrote the code already pretty helpful

  • @hunterallen4521
    @hunterallen4521 3 года назад +1

    Thanks so much 🙏