-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User: Add TOTP 2FA authentication - refs #4431 #5836
base: master
Are you sure you want to change the base?
Conversation
|
||
$qrCodeBase64 = base64_encode($qrCodeResult->getString()); | ||
|
||
return $this->render('@ChamiloCore/Account/change_password.html.twig', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comma after each item in a multi-line array
return $decryptedSecret; | ||
} catch (\Exception $e) { | ||
error_log("Exception caught during decryption: " . $e->getMessage()); | ||
return ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing blank line before return statement
@@ -705,6 +705,21 @@ class User implements UserInterface, EquatableInterface, ResourceInterface, Reso | |||
#[ORM\OneToMany(mappedBy: 'user', targetEntity: SocialPostFeedback::class, orphanRemoval: true)] | |||
private Collection $socialPostsFeedbacks; | |||
|
|||
#[ORM\Column(name: 'mfa_enabled', type: 'boolean', options: ['default' => false])] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
@@ -705,6 +705,21 @@ | |||
#[ORM\OneToMany(mappedBy: 'user', targetEntity: SocialPostFeedback::class, orphanRemoval: true)] | |||
private Collection $socialPostsFeedbacks; | |||
|
|||
#[ORM\Column(name: 'mfa_enabled', type: 'boolean', options: ['default' => false])] | |||
protected bool $mfaEnabled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line indented incorrectly; expected 8 spaces, found 4
#[ORM\Column(name: 'mfa_enabled', type: 'boolean', options: ['default' => false])] | ||
protected bool $mfaEnabled = false; | ||
|
||
#[ORM\Column(name: 'mfa_service', type: 'string', length: 255, nullable: true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.
Code Climate has analyzed commit ae664de and detected 59 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Lang vars:
|
No description provided.