@@ -, +, @@ --- Koha/Auth/TwoFactorAuth.pm | 4 ++-- .../data/mysql/atomicupdate/bug_29894.pl | 6 +++--- .../mysql/en/mandatory/sample_notices.yml | 20 +++++++++---------- 3 files changed, 15 insertions(+), 15 deletions(-) --- a/Koha/Auth/TwoFactorAuth.pm +++ a/Koha/Auth/TwoFactorAuth.pm @@ -25,8 +25,8 @@ use Koha::Exceptions::Patron; use base qw( Auth::GoogleAuth ); -use constant CONFIRM_NOTICE_REG => '2FA_REGISTER'; -use constant CONFIRM_NOTICE_DEREG => '2FA_DEREGISTER'; +use constant CONFIRM_NOTICE_REG => '2FA_ENABLE'; +use constant CONFIRM_NOTICE_DEREG => '2FA_DISABLE'; =head1 NAME --- a/installer/data/mysql/atomicupdate/bug_29894.pl +++ a/installer/data/mysql/atomicupdate/bug_29894.pl @@ -2,15 +2,15 @@ use Modern::Perl; return { bug_number => 29894, - description => "Add 2FA (de)registering notices", + description => "Add 2FA (de)enabling notices", up => sub { my ($args) = @_; my ($dbh, $out) = @$args{qw(dbh out)}; $dbh->do( q{ INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES -('members', '2FA_DEREGISTER', '', 'Confirmation of deregistering two factor authentication', 1, 'Confirmation of deregistering two factor authentication', '

Dear [% borrower.firstname %] [% borrower.surname %],

\r\n

This is to confirm that we deregistered two factor authentication for you.

\r\n

If you did not deregister, someone else may be using your account. Please contact technical support.

\r\n

Your library

', 'email', 'default'), -('members', '2FA_REGISTER', '', 'Confirmation of registering two factor authentication', 1, 'Confirmation of registering two factor authentication', '

Dear [% borrower.firstname %] [% borrower.surname %],

\r\n

This is to confirm that we registered two factor authentication for you.

\r\n

If you did not register, someone else may be using your account. Please contact technical support.

\r\n

Your library

', 'email', 'default') +('members', '2FA_DISABLE', '', 'Confirmation of disabling two factor authentication', 1, 'Confirmation of disabling two factor authentication', '

Dear [% borrower.firstname %] [% borrower.surname %],

\r\n

This is to confirm that someone disabled two factor authentication on your account.

\r\n

If you did not do this, someone else may be using your account. Please contact technical support.

\r\n

Your library

', 'email', 'default'), +('members', '2FA_ENABLE', '', 'Confirmation of enabling two factor authentication', 1, 'Confirmation of enabling two factor authentication', '

Dear [% borrower.firstname %] [% borrower.surname %],

\r\n

This is to confirm that someone enabled two factor authentication on your account.

\r\n

If you did not do this, someone else may be using your account. Please contact technical support.

\r\n

Your library

', 'email', 'default') }); }, }; --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ a/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1634,29 +1634,29 @@ tables: - "Notes: <>" - module: members - code: 2FA_DEREGISTER + code: 2FA_DISABLE branchcode: "" - name: "Confirmation of deregistering two factor authentication" + name: "Confirmation of disabling two factor authentication" is_html: 1 - title: "Confirmation of deregistering two factor authentication" + title: "Confirmation of disabling two factor authentication" message_transport_type: email lang: default content: - "

Dear [% borrower.firstname %] [% borrower.surname %],

" - - "

This is to confirm that we deregistered two factor authentication for you.

" - - "

If you did not deregister, someone else may be using your account. Please contact technical support.

" + - "

This is to confirm that someone disabled two factor authentication on your account.

" + - "

If you did not do this, someone else may be using your account. Please contact technical support.

" - "

Your library

" - module: members - code: 2FA_REGISTER + code: 2FA_ENABLE branchcode: "" - name: "Confirmation of registering two factor authentication" + name: "Confirmation of enabling two factor authentication" is_html: 1 - title: "Confirmation of registering two factor authentication" + title: "Confirmation of enabling two factor authentication" message_transport_type: email lang: default content: - "

Dear [% borrower.firstname %] [% borrower.surname %],

" - - "

This is to confirm that we registered two factor authentication for you.

" - - "

If you did not register, someone else may be using your account. Please contact technical support.

" + - "

This is to confirm that someone enabled two factor authentication on your account.

" + - "

If you did not do this, someone else may be using your account. Please contact technical support.

" - "

Your library

" --