*/
public function setUsersConfig($user, $password, $firstUsage = false, $oldUser = null) {
$usersFile = Prado::getPathOfNamespace(self::USERS_FILE, '.users');
+ $password = crypt($password, base64_encode($password));
if($firstUsage === true) {
$this->clearUsersConfig();
}
$urlPrefix = $this->Application->getModule('friendly-url')->getUrlPrefix();
$location = sprintf("%s://%s:%s@%s:%d%s", $http_protocol, $cfgData['baculum']['login'], $cfgData['baculum']['password'], $_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT'], $urlPrefix);
header("Location: $location");
- return;
+ exit();
} else { // standard version (user defined auth method)
$this->goToDefaultPage();
}