feat: update LoginResponse structure to include Password in the token response

This commit is contained in:
Neil Dorin 2026-05-11 09:50:39 -06:00
parent 1a5840c29a
commit d879430616

View file

@ -93,15 +93,19 @@ namespace PepperDash.Essentials.Core.Web.RequestHandlers
context.Response.ContentType = "application/json"; context.Response.ContentType = "application/json";
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
{ {
UserName = token.UserName, Token = new LoginResponse
Access = token.Access, {
State = token.State, UserName = token.UserName,
Groups = token.Groups, Password = token.Password,
ADConnect = token.ADConnect, Access = token.Access,
Valid = token.Valid State = token.State,
}, Formatting.Indented), false); Groups = token.Groups,
ADConnect = token.ADConnect,
Valid = token.Valid
}
}, Formatting.Indented), false);
context.Response.End(); context.Response.End();
} }
catch (System.Exception ex) catch (System.Exception ex)