Changeset 419
- Timestamp:
- 09/04/09 03:06:01 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Root.pm
r229 r419 29 29 sub default : Private { 30 30 my ( $self, $c ) = @_; 31 31 $c->res->redirect('/users/' . $c->user->{username}) if($c->user); 32 32 } 33 33 … … 40 40 username => $c->req->param('username'), 41 41 password => $c->req->param('password')})) { 42 $c->res->redirect($c->req->param('loguri') || '/'); 42 my $redirurl = $c->req->param('loguri') || '/'; 43 $redirurl = '/' if ($redirurl =~ m:^/login:); 44 $c->res->redirect($redirurl || '/'); 43 45 } else { 44 46 warn "invalid login"; -
LATMOS-Accounts-Web/root/html/includes/header.tt
r272 r419 22 22 <div id="mainmenu" class="pmenu"> 23 23 [% mainmenu %] 24 <div style="float: right"> 25 <a href="[% c.uri_for('/users', c.user.username) %]"><span>Mon profile</span></a> 26 <a href="[% c.uri_for('/users', c.user.username, 'passwd') %]"><span>Changer 27 mon mot de passe</span></a> 24 28 </div> 29 </div>
Note: See TracChangeset
for help on using the changeset viewer.