Login Username at Sharepoint 2010 Form-Based Authentication

When using forms-based authentication in Sharepoint 2010, suppose that the user is logged in with the username "admin" and that our membership provider name is "FBAProvider" ... After logging into this account, the username is displayed as "I: . 0 # | FBAProvider | admin ". How to make it display as it should look like "admin"?

Thanks in advance,

Mete

+3
source share
2 answers

What code do you use to display the username?

SPContext.Current.Web.CurrentUser

SPUser . , , , ( , , "admin", "FBAProvider:: admin" ). , , .

, Email, LoginName Name

+1

, , , , . NetworkSystem - LocalSystem, .

, ASP.

0

Source: https://habr.com/ru/post/1774102/


All Articles