mirror of
https://github.com/bitwarden/server
synced 2025-12-13 23:03:36 +00:00
change email/password adjustments
This commit is contained in:
@@ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations;
|
||||
using Bit.Core.Utilities;
|
||||
using Newtonsoft.Json;
|
||||
using Core.Models.Data;
|
||||
using Bit.Core.Models.Table;
|
||||
|
||||
namespace Bit.Core.Models.Api
|
||||
{
|
||||
@@ -48,4 +49,18 @@ namespace Bit.Core.Models.Api
|
||||
return existingLogin;
|
||||
}
|
||||
}
|
||||
|
||||
public class LoginWithIdRequestModel : LoginRequestModel
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Cipher ToCipher(Guid userId)
|
||||
{
|
||||
return ToCipherDetails(new CipherDetails
|
||||
{
|
||||
UserId = userId,
|
||||
Id = Id
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user