default to a session cookie instead of setting an explicit timeout, weird timezone...
[freeside.git] / httemplate / pref / set_totp_secret32.html
1 <& /elements/header.html, mt('Google Authenticator for [_1]', $FS::CurrentUser::CurrentUser->username) &>
2
3 Scan this code with the Google Authenticator application on your phone.
4 <BR><BR>
5
6 <IMG SRC="<% $access_user->totp_qr_code_url %>"></IMG>
7 <BR><BR>
8
9 Future logins will require a 6-digit code generated by the application.
10
11 <& /elements/footer.html &>
12 <%init>
13
14 my $access_user = $FS::CurrentUser::CurrentUser;
15
16 my $error = $access_user->set_totp_secret32 unless length($access_user->totp_secret32);
17 die $error if $error; #better error handling for this "shouldn't happen" case?
18
19 </%init>