mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 02:28:19 +00:00
feat: update LoginResponse structure to include Password in the token response
This commit is contained in:
parent
1a5840c29a
commit
d879430616
1 changed files with 13 additions and 9 deletions
|
|
@ -93,15 +93,19 @@ namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
|||
context.Response.ContentType = "application/json";
|
||||
context.Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||
context.Response.Write(JsonConvert.SerializeObject(
|
||||
new
|
||||
{
|
||||
UserName = token.UserName,
|
||||
Access = token.Access,
|
||||
State = token.State,
|
||||
Groups = token.Groups,
|
||||
ADConnect = token.ADConnect,
|
||||
Valid = token.Valid
|
||||
}, Formatting.Indented), false);
|
||||
new
|
||||
{
|
||||
Token = new LoginResponse
|
||||
{
|
||||
UserName = token.UserName,
|
||||
Password = token.Password,
|
||||
Access = token.Access,
|
||||
State = token.State,
|
||||
Groups = token.Groups,
|
||||
ADConnect = token.ADConnect,
|
||||
Valid = token.Valid
|
||||
}
|
||||
}, Formatting.Indented), false);
|
||||
context.Response.End();
|
||||
}
|
||||
catch (System.Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue