rcdevs / nextcloud_openotp_auth

OpenOTP plugin enables Multi-Factor Authentication to login to Nextcloud Admin/User Pane
GNU Affero General Public License v3.0
6 stars 1 forks source link

Failed to load - NC 28.0.5 #15

Closed pbuergi closed 3 months ago

pbuergi commented 3 months ago

Since the last update of the App (OpenOTP) there is an error after username and password login:

image

image

We didn't change any settings. On the default policy (only one) we have the default domain active. App-Settings: image

We still can login, but always have to click on the OTP Provider.

Can you help?

Thanks

rcdevs commented 3 months ago

Hello,

This is because multiple authentication providers are enabled for the user accounts. In the plugin configuration, when you select "enable OpenOTP for all users," it makes the OpenOTP provider available for all users. It does not enforce OpenOTP as the only provider available for users. If you don't want users to be prompted to choose their provider, you have to disable other providers for all accounts.

Regards

pbuergi commented 3 months ago

Hi,

But we don't have another provider active.

rcdevs commented 3 months ago

You have the "backup code" provider enabled.

Regards

pbuergi commented 3 months ago

I don't know where, but also not the case by other user: image

pbuergi commented 3 months ago

I solved it:

get providers for user: occ twofactorauth:state username occ twofactorauth:cleanup providername

now it works fine.

Thank you for your help