mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-07-02 10:38:16 +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
|
|
@ -94,13 +94,17 @@ namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
||||||
context.Response.ContentEncoding = System.Text.Encoding.UTF8;
|
context.Response.ContentEncoding = System.Text.Encoding.UTF8;
|
||||||
context.Response.Write(JsonConvert.SerializeObject(
|
context.Response.Write(JsonConvert.SerializeObject(
|
||||||
new
|
new
|
||||||
|
{
|
||||||
|
Token = new LoginResponse
|
||||||
{
|
{
|
||||||
UserName = token.UserName,
|
UserName = token.UserName,
|
||||||
|
Password = token.Password,
|
||||||
Access = token.Access,
|
Access = token.Access,
|
||||||
State = token.State,
|
State = token.State,
|
||||||
Groups = token.Groups,
|
Groups = token.Groups,
|
||||||
ADConnect = token.ADConnect,
|
ADConnect = token.ADConnect,
|
||||||
Valid = token.Valid
|
Valid = token.Valid
|
||||||
|
}
|
||||||
}, Formatting.Indented), false);
|
}, Formatting.Indented), false);
|
||||||
context.Response.End();
|
context.Response.End();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue