Skip to content
Snippets Groups Projects
Commit 50b13ef6 authored by Nabilsenko's avatar Nabilsenko
Browse files

changed token expirationt ime to 1 hour

parent 25badb99
No related branches found
No related tags found
1 merge request!13Change token param
......@@ -47,6 +47,11 @@ export class GroupsController {
@Param() params: { id: string; role: string },
@Body() body: { personId: string; action: string },
): Promise<GroupEntity | void> {
console.log('***************' + params.id,
params.role,
body.personId,
body.action);
return this._groupsService.updateOneByRole(
params.id,
params.role,
......
......@@ -120,7 +120,7 @@ export class InternshipDao {
content: string | boolean,
): Promise<Internship | void> =>
new Promise((resolve, reject) => {
console.log('%s/%s: {%s}', studentId, state, content);
// console.log('%s/%s: {%s}', studentId, state, content);
if (!isStateValid(state)) reject(BAD_REQUEST);
console.log(content);
let nextState: string, contentHolder: string;
......
......@@ -11,7 +11,7 @@ export class LoginController {
// @UseGuards(AuthGuard('local'))
@Post()
async login(@Body() req: Login) {
console.log('controller ' + req.email + req.passwordHash);
// console.log('controller ' + req.email + req.passwordHash);
return this.loginService.login(req);
}
}
......@@ -15,7 +15,7 @@ import { JwtStrategy } from './jwt.strategy';
PassportModule,
JwtModule.register({
secret: jwtConstants.secret,
signOptions: { expiresIn: '300s' },
signOptions: { expiresIn: '3600s' },
}),
],
controllers: [LoginController],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment