Skip to content

Add Enable and Disable toggles#500

Merged
J0 merged 14 commits intomfafrom
j0_add_enable_add_disable
Jun 30, 2022
Merged

Add Enable and Disable toggles#500
J0 merged 14 commits intomfafrom
j0_add_enable_add_disable

Conversation

@J0
Copy link
Contributor

@J0 J0 commented Jun 15, 2022

What kind of change does this PR introduce?

Two simple API endpoints to turn the MFA feature on and off. Calling the endpoints should be idempotent and not throw errors(e.g. calling /enable when it is already on will leave the setting as enabled)

Currently NewUser defaults to having MFAEnabled as False because of setting in DB.

What is the current behavior?

No toggles for MFA

What is the new behavior?

Can toggle MFA on and off

Additional context

numUserFields was updated to account for the new IPAddress field introduced in the AuditLog model.

@J0 J0 marked this pull request as draft June 15, 2022 07:39
@J0 J0 marked this pull request as ready for review June 16, 2022 10:02
@J0 J0 requested review from hf and kangmingtay June 16, 2022 10:19
Copy link
Member

@kangmingtay kangmingtay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

Base automatically changed from j0_add_db_changes to mfa June 30, 2022 08:30
@J0 J0 merged commit 21e32da into mfa Jun 30, 2022
@J0 J0 deleted the j0_add_enable_add_disable branch June 30, 2022 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants