Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Commit

Permalink
Fixing Problem with RememberMe-Filter, smaller CSS improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
Timo Haberkern authored and Timo Haberkern committed Nov 30, 2010
1 parent 1706fa3 commit b42f8b3
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 13 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/lib/myUser.class.php
Expand Up @@ -60,15 +60,15 @@ public function signIn(User $user)
$this->setAttribute('username', $user->getUsername());
$this->setAttribute('firstname', $user->getFirstName());
$this->setAttribute('lastname', $user->getLastName());
$this->setAttribute('theme', $user->Setting->theme);
//$this->setAttribute('theme', $user->Setting->theme);

if ($user->administrator == true) {
$this->addCredential('admin');
}

if ($user->Setting->culture != "") {
/*if ($user->Setting->culture != "") {
$this->setCulture($user->Setting->culture);
}
}*/
}

private $is_first_request = true;
Expand Down
8 changes: 0 additions & 8 deletions lib/de/shiftup/timeboxx/RememberMeFilter.class.php
Expand Up @@ -2,7 +2,6 @@

class RememberMeFilter extends sfFilter
{

/**
* @see sfFilter
*/
Expand All @@ -21,18 +20,11 @@ public function execute($filterChain)
sfContext::getInstance()->getLogger()->info('load user');
$user = Doctrine::getTable('User')->find($token->user_id);


$this->context->getUser()->signIn($user);
}
}

if ($this->context->getUser()->isAnonymous()) {
$settings = Doctrine::getTable('Settings')->find(1);
$this->context->getUser()->setCulture($settings->default_language);
}
}

$filterChain->execute();
}

}
2 changes: 0 additions & 2 deletions lib/model/doctrine/ProjectTable.class.php
@@ -1,6 +1,4 @@
<?php


class ProjectTable extends Doctrine_Table
{

Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/black.css
Expand Up @@ -201,6 +201,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/blue.css
Expand Up @@ -201,6 +201,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/brown.css
Expand Up @@ -201,6 +201,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/green.css
Expand Up @@ -202,6 +202,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/orange.css
Expand Up @@ -202,6 +202,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/purple.css
Expand Up @@ -202,6 +202,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down
2 changes: 2 additions & 0 deletions web/css/themes/red.css
Expand Up @@ -202,6 +202,8 @@ form.basic dl dd {float: left;}
form.basic dl dt {padding: 3px 5px 3px 0; width: 20%;}
form.basic dl dd {padding: 3px 0 3px 5px; width: 76%;}

label { margin-right: 4px }

label.check,
label.radio {margin-right: 5px;}
form small {color: #999;}
Expand Down

0 comments on commit b42f8b3

Please sign in to comment.