Simple Verifying User Login Java

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

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

  • @UsmanAli-xj2jt
    @UsmanAli-xj2jt 4 года назад +2

    Today is my project's last date you save my 5 marks. Thanks a lot, professor.

  • @asinsa8950
    @asinsa8950 6 лет назад +2

    This video was really helpful and the explanations solidified my understanding. I really like the fact that all of your videos are so short and to the point. Thank you so much! :)

    • @rupertacuesta
      @rupertacuesta 6 лет назад +1

      Where did you save your txt file? I have the code completely identical just as a reference, but still it doesnt work.

  • @stonedtothebone4209
    @stonedtothebone4209 6 лет назад +1

    Nice videos bud ! I like how you explain everything you type in there and how they work ... thats just something my teacher does not do and that forces me to learn from videos instead of class ... keep it up ... new here tho but im gonna watch ALL of your content

    • @maxodidily
      @maxodidily  6 лет назад

      Thanks so much for your kind words, they really make me glad that I started to create tutorials and make my day! I am very sorry to hear your teacher doesn't explain the code so you can develop an understanding but I do hope my videos can fill in that void. I hope you enjoy my other videos!

  • @rainbowsprinklez
    @rainbowsprinklez 6 лет назад +1

    Thanks dude. A bit longwinded, but you explain things REALLY well

    • @maxodidily
      @maxodidily  6 лет назад +1

      Thanks so much for the positive feedback, it really makes my day! I do agree that my explanation is a bit long. I'd like to think I have improved over the year.

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

    Well explained. The thing im worried about is where can i store the passwords so reverse engineers cant easily get them

    • @maxodidily
      @maxodidily  4 года назад +2

      This tutorial was designed for A-Level students, so security wasn't a factor, however, I do have an encryption series which will address your concerns: ruclips.net/p/PLrqwM2iFagugVCieW5djj59uLUEcJ0rRi In August I will also be applying those tutorials to my file handling tutorials. Hope this helps!

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

    on the spot method in Java thanks

  • @darkeunfanghey358
    @darkeunfanghey358 5 лет назад

    How do you make this work in jcombobox? I compare tempusername with textfields instead but it keeps going into the catch statement

  • @ahmadfarhan8738
    @ahmadfarhan8738 5 лет назад

    how about i want to get only int numbers from the text file. How to use delimiter?

  • @rmkkmrrmk
    @rmkkmrrmk 5 лет назад

    Thank you, very informative.

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

    why does my code keep printig found even when my username and/or password does not exist in my textfile?

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

    you fvkng saved me dude

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

    Hey Max I need some help if you can reply of course. So basically im making a project for my university where I have an application(Basically creating netflix in java), and I created a login Jframe and a new user Jframe, to create new Users on the application (Email, Password) How could I do to store this information in a database every time I create one so that I can later login with it in the original login form? It would be a lot of help if you could answer, I love your content btw, keep doing great!

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

      Having the same project and the same problem, any advices on the issue and how to solve it?

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

    Hi Max, my java Netbeans keeps saying that the useDelimeter is wrong

  • @talhabaig1099
    @talhabaig1099 6 лет назад

    Hey Max,
    I want to verify data from my signup details.
    I also want to know that how i can get value from Text and Password Field I'm working on javafx GUI for a project.

    • @oussamahedoui1
      @oussamahedoui1 6 лет назад

      you just use ".getText()" method to get your input text or Password

  • @rupertacuesta
    @rupertacuesta 6 лет назад +1

    Tried making my own version, didn't work... Made a complete copy of your code as a reference... Didn't work itself. Where did you save the text file?

    • @maxodidily
      @maxodidily  6 лет назад

      I saved my text file in my Java project folder.

    • @rupertacuesta
      @rupertacuesta 6 лет назад

      @@maxodidily ah I see, thanks!

    • @the_fl3dd0x
      @the_fl3dd0x 5 лет назад

      I had the same Problem but it's now solved ;-)

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

      Hey it's been 4 years, but can I ask how were you able to resove it if you can remember?

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

    Does this work in csv file instead of text file???

  • @bluesclues3285
    @bluesclues3285 6 лет назад +1

    Can someone help? I'm using notepad++ instead and it keep saying error when I run the program.

    • @stonedtothebone4209
      @stonedtothebone4209 6 лет назад

      should say what error it is .. if it is syntax then lookup on the line it sais the error is .. maybe you forgot a ( ; ) symbol or smth simple you cant really see so look closely ... not any expert on java just learning from my mistakes ;p

    • @maxodidily
      @maxodidily  6 лет назад

      What error message are you receiving?

    • @bluesclues3285
      @bluesclues3285 6 лет назад

      ShadowCy Oo im not using NetBeans. I’m using notepad++ and cmd. It wasn’t a problem in the program. It was more of when I ran it, instead of saying true or false, it was showing error instead. It was printing out what was in the catch, system.out.println(“Error”). Like that. But I got it out so thank you for at least responding to me.

    • @bluesclues3285
      @bluesclues3285 6 лет назад

      Max O'Didily not an error message. It was printing error instead of true or false. But i got it out thank you for responding to me❤️

    • @arafatshariff7751
      @arafatshariff7751 5 лет назад +1

      @@maxodidily I am facing the same issue the output is showing only error (whatever is there is catch)instead of showing found.Can you please help me on this.

  • @eins000
    @eins000 6 лет назад

    Can i use this for java jframe programs?

  • @foodiescode
    @foodiescode 5 лет назад

    Instead of showing one message successful or error
    It shows successful for any input (not in file ) and error then . What's the problem?

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

      This sounds like a code blocks issue to me, probably due to incorrectly placed curly braces.

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

    Thanks sir.

  • @arnavgarg9610
    @arnavgarg9610 6 лет назад +1

    where should the txt file be stored

    • @maxodidily
      @maxodidily  6 лет назад

      I would usually store it in the folder for the Java project. You could also create a subfolder if you want inside your Java Project folder to store text files for your program, if you do this be sure to make sure the file path of your textfile includes the subfolder.. (By Java project folder I mean the folder where your Java project is located).

    • @arnavgarg9610
      @arnavgarg9610 6 лет назад

      Thanks

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

    Could u please show the output

  • @daxtonwoods4758
    @daxtonwoods4758 4 года назад

    Having a problem with the code no matter what i input as username and password it always shows found, not able to understand what's going wrong, please help

    • @lvca021
      @lvca021 4 года назад

      Same problem! :( Do you have a solution?

    • @daxtonwoods4758
      @daxtonwoods4758 4 года назад

      @@lvca021 So what I did was that I created a new boolean variable named passed and used it inside the if where the username and password is equaled, there i put in passed as true (so it only works if the username and password matches) and then put a break statement with it, and outside the while put a new if statement where if passed is true then it shows message "login successful" or else it dosent

    • @daxtonwoods4758
      @daxtonwoods4758 4 года назад

      @@lvca021 if u dont get it i can share my code with you :)

    • @aroobmemon4679
      @aroobmemon4679 4 года назад

      @@daxtonwoods4758 kindly share your source code, I'm getting the same problem

    • @daxtonwoods4758
      @daxtonwoods4758 4 года назад

      @@aroobmemon4679 github.com/Frost2001/Login.git
      Uploaded my code on GitHub, use the link to check the code.

  • @mattu5089
    @mattu5089 4 года назад

    Legit helpful!

  • @sergioonita9684
    @sergioonita9684 4 года назад

    please i really do need help i cant get this working, ive tried every way to put the filepath but java does not find it

    • @maxodidily
      @maxodidily  4 года назад

      Where is your text file located?

    • @sergioonita9684
      @sergioonita9684 4 года назад

      @@maxodidily it was located on desktop, i opened the file properties and copied the filepath into my program, but it didnt work. I also tried putting it on every single folder of the project without any result, aswell as changing the / with the \\

    • @maxodidily
      @maxodidily  4 года назад

      Could you send me your code please?

  • @Deepyeah
    @Deepyeah 6 лет назад

    Awesome vid mate! (clap)

  • @bellthomas537
    @bellthomas537 7 лет назад

    how would i do this if their is more things in a line than just a username and a password?

    • @maxodidily
      @maxodidily  7 лет назад

      So this can be applied to any case of reading records from files. Simply create more strings where tempUsuername and tempPassword are for each variable. Then were we have x.next() have one more for each extra string you made before. Make sure you read and assign values in the correct order otherwise u will get unexpected issues. Hope this helps.

  • @funnymoments-nz8my
    @funnymoments-nz8my 4 года назад

    Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @vishnurpillai7973
    @vishnurpillai7973 4 года назад

    I love this

  • @Vedcore
    @Vedcore 5 лет назад

    You took A-Level Spanish ??? :O

    • @maxodidily
      @maxodidily  4 года назад

      What makes you say that?

    • @Vedcore
      @Vedcore 4 года назад

      @@maxodidily Dude, I have no idea. Haha. Good video though!

    • @maxodidily
      @maxodidily  4 года назад

      @@Vedcore Eres parcialmente correcto. En mi tiempo libre, estudio espanol.

    • @axcr0dxsk327
      @axcr0dxsk327 4 года назад

      @@maxodidily says at 6:08

  • @renbll
    @renbll 6 лет назад

    i have registered a user saved it to the database. I want the user when pressing the login button another page to pop up and welcome the user with his username. For example. Welcome george2014