dotnetclub-net / dotnetclub

dotnetclub.net 的源代码
https://dotnetclub.net
MIT License
259 stars 80 forks source link

Registered member Jim can login with his email address and password #2

Closed jijiechen closed 6 years ago

jijiechen commented 8 years ago

OpenASPNET wants to give registered member the ability to login and start a unique session for him so that these users can be identified during their accessing to the site.

Sign in links on pages Given Jim is a registered member of OpenASPNET When Jim access OpenASPNET Then he should see a "Sign in" link on pages

Note: since before Jim signs in, we cannot identify him, so the "Sign in" link should always appear before any member signed in.

Sign in page Given Jim is a registered member of OpenASPNET, Jim accesses OpenASPNET When Jim clicks the "Sign in" button on page Then he should be redirected to a sign in page; and Jim is asked for a valid email and password; and a "Sign in" button should be provided to Jim.

Note: the page will keep validating the email address when Jim is typing; only enable the "Sign in" button when the email address is in a valid format.

Sign in Given Jim is a registered member of OpenASPNET, Jim is on sign in page When Jim fills in the email and password fields and clicks "Sign in" button Then Jim should be accepted to sign in and start his session; the "signin link" on pages should turn to a "Sign off" link.

Sign off Given Jim is a registered member of OpenASPNET, Jim signed in to OpenASPNET When Jim clicks the "Sign off" link on any page Then Jim should be signed off; his session will close.

Note: session will automatically be closed if Jim closes all browser windows during the session. After he do that, he access OpenASPNET again, then he should be recognized as not signed in.