diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-09 23:11:19 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-15 20:45:42 +0100 |
commit | 09712320501a3e64541c429ca460c30eefced099 (patch) | |
tree | 2f3b60485f0ddba68a7bc89fde60fdf99f69f9a8 /apps/twofactor_backupcodes/templates | |
parent | 53c077afc9077dcadcaf4b8ad62590fb549947b0 (diff) | |
download | nextcloud-server-09712320501a3e64541c429ca460c30eefced099.tar.gz nextcloud-server-09712320501a3e64541c429ca460c30eefced099.zip |
Provide initial state for backupcodes in template
This saves a direct request to the server when loading the backup codes.
There is no need for this as the data is already known.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes/templates')
-rw-r--r-- | apps/twofactor_backupcodes/templates/personal.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/templates/personal.php b/apps/twofactor_backupcodes/templates/personal.php index c57a589a26a..fda8abeca4c 100644 --- a/apps/twofactor_backupcodes/templates/personal.php +++ b/apps/twofactor_backupcodes/templates/personal.php @@ -4,4 +4,6 @@ script('twofactor_backupcodes', 'settings'); ?> +<input type="hidden" id="twofactor-backupcodes-initial-state" value="<?php p($_['state']); ?>"> + <div id="twofactor-backupcodes-settings"></div> |