🐛 — Fix #159 — Problem with badly detected URLs in mail sending
This commit is contained in:
parent
d08275d7e5
commit
3e3e84d6f4
|
@ -6,6 +6,8 @@ Revision history for Lufi
|
|||
button) (#166)
|
||||
- Change row color on hover
|
||||
- Fix typo that leads to error in Safari (#164)
|
||||
- Fix (for good, I hope) the problem with badly detected URLs in mail
|
||||
sending (#159)
|
||||
|
||||
0.04.3 2019-09 29
|
||||
- Translate dates in invitations (#161)
|
||||
|
|
|
@ -25,6 +25,7 @@ sub startup {
|
|||
die 'You need to provide an email address or an URL as report information in lufi.conf!';
|
||||
}
|
||||
|
||||
$self->config('prefix', $self->config('prefix').'/') unless substr($self->config('prefix'), -1) eq '/';
|
||||
|
||||
# Themes handling
|
||||
$self->plugin('FiatTux::Themes');
|
||||
|
|
|
@ -4,10 +4,10 @@ use Mojo::Base 'Mojolicious::Controller';
|
|||
|
||||
sub login_page {
|
||||
my $c = shift;
|
||||
my $redirect = $c->param('redirect') // 'index';
|
||||
my $redirect = $c->param('redirect') // '/';
|
||||
|
||||
if ($c->is_user_authenticated) {
|
||||
$c->redirect_to('index');
|
||||
$c->redirect_to('/');
|
||||
} else {
|
||||
$c->render(
|
||||
template => 'login',
|
||||
|
@ -21,7 +21,7 @@ sub login {
|
|||
|
||||
my $login = $c->param('login');
|
||||
my $pwd = $c->param('password');
|
||||
my $redirect = $c->param('redirect') // 'index';
|
||||
my $redirect = $c->param('redirect') // '/';
|
||||
|
||||
if ($c->validation->csrf_protect->has_error('csrf_token')) {
|
||||
$c->stash(msg => $c->l('Bad CSRF token.'));
|
||||
|
@ -33,7 +33,7 @@ sub login {
|
|||
} elsif ($redirect eq 'my_invitations') {
|
||||
return $c->redirect_to('invite_list');
|
||||
}
|
||||
return $c->redirect_to('index');
|
||||
return $c->redirect_to('/');
|
||||
} else {
|
||||
$c->stash(msg => $c->l('Please, check your credentials or your right to access this service: unable to authenticate.'));
|
||||
$c->render(template => 'login');
|
||||
|
|
Loading…
Reference in New Issue