Tuesday, 15 May 2012

Windows Authentication using MVC5, display Username at the top of every View -



Windows Authentication using MVC5, display Username at the top of every View -

i developing mvc5 application doe. utilize windows authentication login our computers. need help getting users name when logged in display "welcome, username"(across pages) when navigate site. problem when navigate page displays our id utilize login, i.e. i5456 , password. much appreciated if assist me , walk me through how set up.

i have disabled forms auth , enabled windows auth in vs 2013. have tried using @user.identity.name in sitelayout, said id thing displayed. i'm not sure how setup model or view, or if have to. there way retrieve username can displayed instead of id?

try @user.identity.getusername() in view works me

windows authentication asp.net-mvc-5

No comments:

Post a Comment