HotFix to test hydra connexion (#1471)
This commit is contained in:
parent
553902e52a
commit
8c96b514d4
2 changed files with 4 additions and 1 deletions
2
front/dist/.htaccess
vendored
2
front/dist/.htaccess
vendored
|
@ -23,4 +23,4 @@ RewriteCond %{REQUEST_FILENAME} !-f
|
|||
RewriteRule "^[_@]/" "/index.html" [L]
|
||||
RewriteRule "^register/" "/index.html" [L]
|
||||
RewriteRule "^login" "/index.html" [L]
|
||||
RewriteRule "^jwt/" "/index.html" [L]
|
||||
RewriteRule "^jwt" "/index.html" [L]
|
||||
|
|
|
@ -83,6 +83,7 @@ export class AuthenticateController extends BaseController {
|
|||
this.addCorsHeaders(res);
|
||||
return res.end(JSON.stringify({ authToken }));
|
||||
} catch (e) {
|
||||
console.error("openIDCallback => ERROR", e);
|
||||
return this.errorToResponse(e, res);
|
||||
}
|
||||
});
|
||||
|
@ -153,6 +154,7 @@ export class AuthenticateController extends BaseController {
|
|||
})
|
||||
);
|
||||
} catch (e) {
|
||||
console.error("register => ERROR", e);
|
||||
this.errorToResponse(e, res);
|
||||
}
|
||||
})();
|
||||
|
@ -214,6 +216,7 @@ export class AuthenticateController extends BaseController {
|
|||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("profileCallback => ERROR", error);
|
||||
this.errorToResponse(error, res);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue