SignInManagerExtensions.PasswordSignIn<TUser, TKey> Method (SignInManager<TUser, TKey>, String, String, Boolean, Boolean)
Sign in the user in using the user name and password
Namespace: Microsoft.AspNet.Identity.Owin
Assembly: Microsoft.AspNet.Identity.Owin (in Microsoft.AspNet.Identity.Owin.dll)
Syntax
public static SignInStatus PasswordSignIn<TUser, TKey>(
this SignInManager<TUser, TKey> manager,
string userName,
string password,
bool isPersistent,
bool shouldLockout
)
where TUser : class, IUser<TKey>
where TKey : object, IEquatable<TKey>
public:
generic<typename TUser, typename TKey>
where TUser : ref class, IUser<TKey>
where TKey : Object, IEquatable<TKey>
[ExtensionAttribute]
static SignInStatus PasswordSignIn(
SignInManager<TUser, TKey>^ manager,
String^ userName,
String^ password,
bool isPersistent,
bool shouldLockout
)
static member PasswordSignIn<'TUser, 'TKey when 'TUser : not struct and IUser<'TKey> when 'TKey : Object and IEquatable<'TKey>> :
manager:SignInManager<'TUser, 'TKey> *
userName:string *
password:string *
isPersistent:bool *
shouldLockout:bool -> SignInStatus
<ExtensionAttribute>
Public Shared Function PasswordSignIn(Of TUser As { Class, IUser(Of TKey) }, TKey As { Object, IEquatable(Of TKey) }) (
manager As SignInManager(Of TUser, TKey),
userName As String,
password As String,
isPersistent As Boolean,
shouldLockout As Boolean
) As SignInStatus
Parameters
- manager
Type: Microsoft.AspNet.Identity.Owin.SignInManager<TUser, TKey>
- userName
Type: System.String
- password
Type: System.String
- isPersistent
Type: System.Boolean
- shouldLockout
Type: System.Boolean
Return Value
Type: Microsoft.AspNet.Identity.Owin.SignInStatus
See Also
SignInManagerExtensions Class
Microsoft.AspNet.Identity.Owin Namespace
Return to top