| |

VerySource

 Forgot password?
 Register
Search
View: 986|Reply: 8

There are only "Username" and "Password" in the Login control. Can you add an item to it, such as "Category"?

[Copy link]

5

Threads

5

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-1-18 11:40:01
| Show all posts |Read mode
Dear experts:
    Due to the needs of the program, I added a "category" field to the aspnet_User table, which has only two values: Party A and Party B. Therefore, the user is required to add three items when registering: user name, password, and category. Registration is considered successful if all three items match a record in the table. At this time, can I still use the Login control directly? If not, what should I do? Please advise, thank you!
Reply

Use magic Report

0

Threads

58

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-1-24 11:36:01
| Show all posts
Learn
Reply

Use magic Report

0

Threads

24

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-1-24 21:45:02
| Show all posts
Might as well write a login interface yourself!
Reply

Use magic Report

0

Threads

24

Posts

20.00

Credits

Newbie

Rank: 1

Credits
20.00

 China

Post time: 2020-1-25 11:00:01
| Show all posts
Might as well write your own landing page more convenient and more controlled!
Reply

Use magic Report

0

Threads

73

Posts

27.00

Credits

Newbie

Rank: 1

Credits
27.00

 China

Post time: 2020-1-25 17:00:01
| Show all posts
The LOGIN control is very simple, make it yourself, submit 3 values, and compare them in the database
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-26 13:27:01
| Show all posts
1. Write a custom MembershipUser class that inherits from MembershipUser;
2. Rewrite MembershipProvider;
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-22 11:00:01
| Show all posts
Learn!
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-22 11:15:01
| Show all posts
I also feel that I am better and flexible to write.
Reply

Use magic Report

0

Threads

2

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-8-22 11:30:01
| Show all posts
I have used this control, it is too bad. I am so depressed, it is really better to write one myself.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list