summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorsanto spider <spider@santo>2014-06-04 14:37:00 -0400
committersanto spider <spider@santo>2014-06-04 14:37:00 -0400
commitadfdba5ae1f4f6ddaa00e94d306223cb5b4e56c7 (patch)
treee137a65e261d08aaf30bda632796d452f9d2e6c2 /install.php
parentd04dbee178829d76708b2f7690e38d8ae61c9f01 (diff)
downloadinstall-adfdba5ae1f4f6ddaa00e94d306223cb5b4e56c7.tar.gz
install-adfdba5ae1f4f6ddaa00e94d306223cb5b4e56c7.tar.bz2
install-adfdba5ae1f4f6ddaa00e94d306223cb5b4e56c7.zip
inline signin handling
Diffstat (limited to 'install.php')
-rw-r--r--install.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/install.php b/install.php
index b4bf65f..5037874 100644
--- a/install.php
+++ b/install.php
@@ -141,6 +141,13 @@ $install_file[$i]['name'] = 'Done';
// Needed for version number
$gBitSmarty->assign_by_ref( 'gBitSystem', $gBitSystem );
+if( !empty( $_POST['signin'] ) ) {
+ $gBitUser->login( $_POST['user'], $_POST['pass'] );
+ if( !$gBitUser->isRegistered() ) {
+ $gBitSmarty->assign( 'error', current( $gBitUser->mErrors ) );
+ }
+}
+
// if we have to log in, call login template and die
if( !empty( $gBitDbType ) && !empty( $gBitInstaller->mPackages['users']['installed'] ) && !$gBitUser->isAdmin() && !$_SESSION['first_install'] ) {
$install_file = 'login';