mirror of
https://github.com/bitwarden/server
synced 2025-12-18 17:23:28 +00:00
Added device identifier, APIs for updating token by identifier, Device creation/update upon signin.
This commit is contained in:
@@ -27,7 +27,7 @@ namespace Bit.Api.Controllers
|
||||
[AllowAnonymous]
|
||||
public async Task<AuthTokenResponseModel> PostToken([FromBody]AuthTokenRequestModel model)
|
||||
{
|
||||
var result = await _signInManager.PasswordSignInAsync(model.Email.ToLower(), model.MasterPasswordHash);
|
||||
var result = await _signInManager.PasswordSignInAsync(model.Email.ToLower(), model.MasterPasswordHash, model.Device?.ToDevice());
|
||||
if(result == JwtBearerSignInResult.Success)
|
||||
{
|
||||
return new AuthTokenResponseModel(result.Token, result.User);
|
||||
|
||||
Reference in New Issue
Block a user