added google authenticator support to the gui

This commit is contained in:
SJ
2013-10-16 14:55:17 +02:00
parent 62e5dc8afa
commit dae73a577a
50 changed files with 10676 additions and 39 deletions

View File

@ -173,7 +173,9 @@ create table if not exists `user_settings` (
`username` char(64) not null unique,
`pagelen` int default 20,
`theme` char(8) default 'default',
`lang` char(2) default NULL
`lang` char(2) default null,
`ga_enabled` int default 0,
`ga_secret` varchar(255) default null
);
create index `user_settings_idx` on `user_settings`(`username`);

View File

@ -0,0 +1,4 @@
alter table `user_settings` add column `ga_enabled` int default 0;
alter table `user_settings` add column `ga_secret` varchar(255) default null;

View File

@ -379,6 +379,7 @@ webui_install() {
cp -R webui/.htaccess $DOCROOT
chmod 770 $DOCROOT/tmp $DOCROOT/images
chgrp $WWWGROUP $DOCROOT/tmp
chgrp $WWWGROUP $DOCROOT/system/helper/phpqrcode/cache
echo "<?php" > $DOCROOT/config-site.php
echo >> $DOCROOT/config-site.php