mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
Testing Oauth
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import {HttpContextContract} from '@ioc:Adonis/Core/HttpContext'
|
||||
import User from "App/Models/User";
|
||||
import {AllyUserContract} from "@ioc:Adonis/Addons/Ally";
|
||||
import Logger from "@ioc:Adonis/Core/Logger";
|
||||
|
||||
export default class AuthController {
|
||||
|
||||
@@ -106,6 +107,8 @@ export default class AuthController {
|
||||
const redirected_url = await session.get('redirect')
|
||||
await session.forget('redirect')
|
||||
|
||||
Logger.debug(redirected_url)
|
||||
|
||||
if (github.accessDenied()) {
|
||||
return response.status(403).send({
|
||||
message: 'Access Denied!'
|
||||
|
||||
Reference in New Issue
Block a user