none
HOW TO MAKE A SIMPLE SIGN UP, LOGIN PASSWORD PROGRAM IN smallbasic GRAPHICWINDOW (with litdev) RRS feed

  • Question

  • please help ! 

    HOW TO MAKE A SIMPLE signup and LOGIN PASSWORD PROGRAM   IN smallbasic GRAPHICWINDOW (with litdev) 

    when i l sign up     all values save in a text file for   login data 

    Wednesday, August 24, 2016 5:13 PM

Answers

  • Or using the password event

    pwdBox = LDControls.AddPasswordBox(200,22,16)
    Controls.Move(pwdBox,50,50)
    LDControls.PasswordEntered = OnPasswordEntered
    
    Sub OnPasswordEntered
      If (pwdBox = LDControls.LastPasswordBox) Then
        pwd = LDControls.LastPassword
        GraphicsWindow.Title = "Password Entered :"+pwd
      EndIf
    EndSub
    You must have some way to check the password, preferably without saving the password itself - usually a hash (google about this) - then look at LDEncryption.SHA512Hash for example.


    Wednesday, August 24, 2016 8:37 PM
    Moderator
  • Look at the File.Append command or the other File commands.

    Jan [ WhTurner ] The Netherlands

    • Marked as answer by msdn.yogesh Thursday, August 25, 2016 11:51 AM
    Thursday, August 25, 2016 9:38 AM
    Answerer

All replies

  • here is the solution by WhTurner

    GraphicsWindow.width=500
    GraphicsWindow.height=500
    GraphicsWindow.top=0
    GraphicsWindow.left=0

    ident=LDControls.AddPasswordBox(200,30,5)
    Controls.Move(ident,200,200)

    Wednesday, August 24, 2016 8:21 PM
    Answerer
  • Or using the password event

    pwdBox = LDControls.AddPasswordBox(200,22,16)
    Controls.Move(pwdBox,50,50)
    LDControls.PasswordEntered = OnPasswordEntered
    
    Sub OnPasswordEntered
      If (pwdBox = LDControls.LastPasswordBox) Then
        pwd = LDControls.LastPassword
        GraphicsWindow.Title = "Password Entered :"+pwd
      EndIf
    EndSub
    You must have some way to check the password, preferably without saving the password itself - usually a hash (google about this) - then look at LDEncryption.SHA512Hash for example.


    Wednesday, August 24, 2016 8:37 PM
    Moderator
  • BUT how to save entered value in a txt file ( for database)
    Thursday, August 25, 2016 1:14 AM
  • ...........mmmmmmmmmmm   ok

    BUT  how to save entered value(password, name etc) in a txt file ( for database)

    Thursday, August 25, 2016 1:16 AM
  • Look at the File.Append command or the other File commands.

    Jan [ WhTurner ] The Netherlands

    • Marked as answer by msdn.yogesh Thursday, August 25, 2016 11:51 AM
    Thursday, August 25, 2016 9:38 AM
    Answerer
  • Thank you so much   :)
    Thursday, August 25, 2016 11:48 AM