Skip to content

Commit

Permalink
mod_auth2fa: small fixes.
Browse files Browse the repository at this point in the history
m_identity: handle set_passcode_error
  • Loading branch information
mworrell committed Sep 6, 2022
1 parent 3b90561 commit 11e2a61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/mod_auth2fa/models/m_auth2fa.erl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ regenerate_user_secret(UserId, Context) ->

set_user_secret(UserId, Passcode, Context) ->
F = fun(Ctx) ->
totp_disable(UserId, Context),
totp_disable(UserId, Ctx),
Props = [
{propb, {term, Passcode}}
],
Expand Down
2 changes: 1 addition & 1 deletion modules/mod_auth2fa/templates/admin_auth2fa_config.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "admin_base.tpl" %}

{% block title %}Two-factor Authentication Configuration{% endblock %}
{% block title %}{_ Two-factor authentication configuration _}{% endblock %}

{% block content %}
<div class="admin-header">
Expand Down
2 changes: 2 additions & 0 deletions src/models/m_identity.erl
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ check_username_pw_do(Username, Password, QueryArgs, Context) ->
Error;
{error, set_passcode} = Error ->
Error;
{error, set_passcode_error} = Error ->
Error;
Error ->
z_notifier:notify_sync(
#auth_checked{
Expand Down

0 comments on commit 11e2a61

Please sign in to comment.