LoginView RoleGroup Sequence Sample
Only one LoginView is shown to an authenticated user. If a user belongs to multiple roles that each have a unique template, the user will be shown the first template that their role matches.
Log in as User1
and notice that you are shown different role's templates in the different examples because the templates are ordered differently within the LoginView control.
In this example the templates are in the following order:
Admins
Users
Customers
*Annonymous
*LoggedIn
In this example the templates are in the following order:
Admins
Customers
Users
*Annonymous
*LoggedIn
You are not logged in. Please Login.
Log In
User Name:
Password:
Remember me next time.
You are not logged in. Please Login.
Log In
User Name:
Password:
Remember me next time.
Example User Accounts
You can use the following user accounts to try out this sample:
UserName
Password
Question
Answer
Roles
User1
123456?
Favorite color?
Red
Users, Customers
User2
123456?
Favorite color?
Red
Admins
User3
123456?
Favorite color?
Red
Customers