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

Commit

Permalink
🐛 Fix route for security endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Apr 29, 2020
1 parent 2676fac commit 55ec23d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/controllers/users/_id/access-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export class UserAccessTokensController {
@Middleware(
validator(
{
scopes: Joi.string().allow(),
name: Joi.string().allow(),
description: Joi.string().allow(),
expiresAt: Joi.string().allow(),
scopes: Joi.string().allow(null),
name: Joi.string().allow(null),
description: Joi.string().allow(null),
expiresAt: Joi.string(),
},
"body"
)
Expand Down
1 change: 0 additions & 1 deletion src/controllers/users/_id/security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {
verify2FAForUser,
} from "../../../_staart/rest/user";

@Controller(":id")
@ClassMiddleware(authHandler)
export class UserSecurityController {
@Put("password")
Expand Down

0 comments on commit 55ec23d

Please sign in to comment.