This commit is contained in:
fenris 2025-10-02 14:30:19 +02:00
parent 671cbfea01
commit 49b9481701

View file

@ -80,15 +80,18 @@ namespace _zeitbild.api
(stuff.headers["Cookie"] ?? stuff.headers["cookie"] ?? null),
stuff.query_parameters
);
if (data.userinfo.name === null) {
if (data.userinfo.name === null)
{
return Promise.reject(
new Error(
"IDP did not return user name"
)
);
}
else {
try {
else
{
try
{
await _zeitbild.service.user.add(
{
"name": data.userinfo.name,
@ -103,7 +106,8 @@ namespace _zeitbild.api
}
);
}
catch (error) {
catch (error)
{
// do nothing
}
const session_key : string = await lib_plankton.session.begin(