Computer Science Canada

login source code - could be refined to access something

Author:  devilwhat [ Thu Jun 08, 2006 9:17 am ]
Post subject:  login source code - could be refined to access something

this is a login i created
code:
const rightname:="programer"
const rightword:="programming"
var name:string
var password:string

loop
put "Enter your username: "..
get name

if name not=rightname then
    put "Sorry, that is the incorrect username."
end if

if name=rightname then
    put "Welcome programer. Enter your password: "..
    get password
end if

if password not=rightword then
    put "Sorry, that is the incorrect password."
end if

if password=rightword then
    put "You have successfully logged in.\n\n\n"
end if

end loop

Author:  - IzAk - [ Thu Jun 08, 2006 11:10 am ]
Post subject: 

what's it a loggin to?

Author:  _justin_ [ Thu Jun 08, 2006 12:01 pm ]
Post subject: 

he just wrote the login part you can add your own program to so you have to have users login and what not

Author:  Clayton [ Thu Jun 08, 2006 3:11 pm ]
Post subject: 

this would be much more useful if you were to send username and password info to an encrypted file (there are many topics out there about encryption) and used some kind of GUI to center the input instead of the upper left corner Very Happy

Author:  Jimbo 420 [ Fri Jun 09, 2006 12:30 pm ]
Post subject: 

yeh this is pretty plain a gui or something would make it a lot less plain


: