Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Assumption:
- - Able access MyGSeT Portal system
- - COMPLETE access hyperlink
- Pseudocode:
- BEGIN MAINPROGRAM LOGIN
- Initialize INT NumOfAttempts = 3
- Go TO Login PAGE
- User FILL out values TO the fields: USERID, Password
- IF User click Summit BUTTON THEN
- CHECK_VALID
- IF USERID invalid THEN
- System prompts an ERROR MESSAGE asking the user TO re-enter USERID AND Password
- ELSE USERID valid
- IF Password invalid THEN
- IF FIRST attempt THEN
- System prompts an ERROR MESSAGE asking the user TO re-enter USERID AND Password
- NumOfAttempts = 2
- ELSE
- IF second attempt THEN
- System prompts an ERROR MESSAGE asking the user TO re-enter USERID AND Password
- NumOfAttempts = 1
- ELSE
- IF third attempt THEN
- System lock USERID
- Prompts MESSAGE Password is wrong, user needs TO CALL the CALL Center TO unlock USERID
- NumOfAttempts = 0
- END MAINPROGRAM
- ENDIF
- ENDIF
- ENDIF
- ELSE Password valid
- IF FIRST TIME login THEN
- System prompts the hint Q FOR user TO provide A
- IF Select hint Q AND provide A THEN
- System prompts user TO change Password
- IF Password changed THEN
- System displays Login PAGE TO re-login
- ELSE
- System prompts an ERROR MESSAGE asking the user TO contact the CALL Center
- ENDIF
- ELSE
- System prompts an ERROR MESSAGE asking the user TO contact the CALL Center
- ENDIF
- ELSE
- Able TO access
- END MAINPROGRAM
- ENDIF
- ENDIF
- ENDIF
- ENDIF
- IF User click Summit BUTTON THEN
- System CLEAR the ENTERED USERID AND Password
- System displays ENTRY FIELD FOR USERID AND Password
- ELSE
- ENDIF
- END MAINPROGRAM LOGIN
- BEGIN SUBPROGRAM CHECK_VALID(USERID, Password)
- IF (USERID.length <=16) THEN
- IF(Password.length ==8) THEN
- RETURN TRUE
- ELSE
- RETURN FALSE
- ENDIF
- ELSE
- RETURN FALSE
- ENDIF
- END SUBPROGRAM CHECK_VALID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement