Skip to content
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

Cosmetic bug: TOTP app checkbox is not unmarked when disabling the app from the CLI #65

Open
davitol opened this issue Sep 28, 2018 · 3 comments
Labels

Comments

@davitol
Copy link
Contributor

davitol commented Sep 28, 2018

Step to reproduce

  1. Enable TOTP app for user1
  2. Via CLI run occ twofactorauth:disable user1
  3. Browse to Security section of user1

Current behavior

The checkbox is marked

Expected behavior

The checkbox should be unmarked. Note that TOTP is disabled for user1, it is just a cosmetic bug.

screen shot 2018-09-28 at 11 20 17

screen shot 2018-09-28 at 11 20 12

@davitol davitol added the bug label Sep 28, 2018
@davitol
Copy link
Contributor Author

davitol commented Sep 28, 2018

that wrong connection between disabling via CLI and the webUI i think it makes a lot scenarios of wrong enable status
What i mean is, if you run for example

occ twofactorauth:disable admin

the only way to enable totp for the user is via CLI, the webUI won't work for enable it again

@PVince81
Copy link

as far as I remember, these two options are unrelated.

The CLI option exists in core and is related to "two factor authentication", not TOTP. I don't remember whether it enforces two factor auth for that user.

The option in the web UI is specific to this TOTP app, which is a specific implementation / style of two factor authentication. So the checkbox is only here to enable this type for this user.

We can leave this ticket open to reword the web UI setting to make it clearer.

@karakayasemi
Copy link
Contributor

karakayasemi commented Sep 28, 2018

IMHO, if two-factor is disabled by the admin, the user should not see any two-factor provider app's settings in the personal panel. Maybe, we can add a control for here: https://github.com/owncloud/twofactor_totp/blob/master/lib/Settings/PersonalPanel.php#L39 or for a more common fix, we should add something on the core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants