Small Basic Forum

Full Version: Challenge 1 - TextWindow login
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Write a TextWindow login program.

It should have options to:
  • create and account and set a password
  • login using existing account and password (checking the password)

To extend the program you could:
  • have a reset password option
  • save the passwords so that the program can be rerun
  • consider how to 'encrypt' the passwords
  • write a GraphicsWindow version
Here is a starting answer, import TSSN477.000

This should be imported into Small Basic using the code above.  It contains File commands that are automatically commented out for security reasons.  You should check you are happy they don't do anything bad by looking at the code, then when happy uncomment them.  I recommend saving the program somewhere before running it, since it saves passwords to a settings file in the same folder as the program is saved (hence the File commands).

Run the program, check out how it works, what isn't so good and make it better!