We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d87c7ea commit 7176f76Copy full SHA for 7176f76
1 file changed
index.ts
@@ -228,6 +228,7 @@ export default class OAuthPlugin extends AdminForthPlugin {
228
if (!user) {
229
// Check if open signup is enabled
230
if (!this.options.openSignup?.enabled) {
231
+ response.setStatus(403);
232
return {
233
error: 'User with your email is not registered in system and signup is not allowed. Please contact your administrator to get access to the system'
234
};
@@ -303,6 +304,7 @@ export default class OAuthPlugin extends AdminForthPlugin {
303
304
});
305
} catch (error) {
306
console.error('OAuth authentication error:', error);
307
+ response.setStatus(400);
308
309
error: `Authentication failed: ${error}`
310
0 commit comments