* Check if the user verified the login with his password
*/
public static function verifyUser() {
- if(OC_Config::getValue('enhancedauth', true) === true) {
+ if(OC_Config::getValue('enhancedauth', false) === true) {
if(!isset($_SESSION['verifiedLogin']) OR $_SESSION['verifiedLogin'] < time()) {
$l = OC_L10N::get('lib');
self::error(array( 'data' => array( 'message' => $l->t('Authentication error') )));
* If not, the user will be shown a password verification page
*/
public static function verifyUser() {
- if(OC_Config::getValue('enhancedauth', true) === true) {
+ if(OC_Config::getValue('enhancedauth', false) === true) {
// Check password to set session
if(isset($_POST['password'])) {
if (OC_User::login(OC_User::getUser(), $_POST["password"] ) === true) {
* @return bool
*/
public static function isUserVerified() {
- if(OC_Config::getValue('enhancedauth', true) === true) {
+ if(OC_Config::getValue('enhancedauth', false) === true) {
if(!isset($_SESSION['verifiedLogin']) OR $_SESSION['verifiedLogin'] < time()) {
return false;
}
- return true;
}
+ return true;
}
/**