Skip to content

Commit

Permalink
Merge pull request #85 from HannesOberreiter/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
HannesOberreiter committed Apr 18, 2023
2 parents e585bec + f300a91 commit 5a194f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/api/routes/v1/auth.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,11 @@ export class AuthRouter extends Router {
Container.resolve('AuthController').discourse
);

this.router.route('/google/login').get(passport.authenticate('google'));
this.router.route('/google/login').get(
passport.authenticate('google', {
prompt: 'select_account',
})
);
this.router.route('/google/callback').get(
passport.authenticate('google', {
session: false,
Expand Down
2 changes: 1 addition & 1 deletion src/api/routes/v1/service.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ServiceRouter extends Router {
body('question').isString().isLength({ min: 1, max: 1000 }),
body('lang').isString().isLength({ min: 2, max: 2 }),
]),
Guard.authorize([ROLES.admin, ROLES.user]),
Guard.authorize([ROLES.admin, ROLES.user, ROLES.read]),
Container.resolve('ServiceController').askWizBee
);
}
Expand Down

0 comments on commit 5a194f8

Please sign in to comment.