Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
intrn(route): fix user not able to log out
Browse files Browse the repository at this point in the history
Co-authored-by: Jarlem Red de Peralta <lmoa.jhdp@gmail.com>

Co-authored-by: Kenneth Trecy Tobias <19201.tobias.kennethtrecy.c@gmail.com>
  • Loading branch information
Argsfried and KennethTrecy committed Nov 25, 2022
1 parent 78dc886 commit 9874533
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions routes/api/user/log_out.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import Policy from "!/bases/policy"
import Validation from "!/bases/validation"
import Controller from "!/bases/controller-likes/controller"
import NoContentResponseInfo from "!/response_infos/no_content"
import CommonMiddlewareList from "!/middlewares/common_middleware_list"
import AuthenticationBasedPolicy from "!/policies/authentication-based"

export default class extends Controller {
get filePath(): string { return __filename }

get policy(): Policy { return CommonMiddlewareList.knownOnlyPolicy }
get policy(): Policy {
return new AuthenticationBasedPolicy(true, {
"requireChangedPassword": false
})
}

get bodyParser(): null { return null }

Expand Down

0 comments on commit 9874533

Please sign in to comment.