Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: update createTOTP
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Mar 27, 2020
1 parent 8887f21 commit de838e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AuthService {
}

public async createTOTP(userId: string) {
const { base32, otpauth_url } = speakeasy.generateSecret()
const { base32, otpauth_url } = speakeasy.generateSecret({ name: 'Yancey Blog CMS' })

await this.usersService.updateUser({
id: userId,
Expand Down

0 comments on commit de838e1

Please sign in to comment.