Bugfix for @lfk/frontend/#43
All checks were successful
continuous-integration/drone/pr Build is passing

This commit is contained in:
2021-02-07 13:37:01 +01:00
parent a18d4d3cee
commit 8f0a396dd0
4 changed files with 7 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ export class CreateResetToken {
/**
* Create a password reset token based on this.
*/
public async toResetToken(): Promise<any> {
public async toResetToken(): Promise<string> {
if (!this.email) {
throw new UserEmailNeededError();
}
@@ -37,7 +37,7 @@ export class CreateResetToken {
await getConnectionManager().get().getRepository(User).save(found_user);
//Create the reset token
let reset_token = JwtCreator.createReset(found_user);
let reset_token: string = JwtCreator.createReset(found_user);
return reset_token;
}