summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/Auth.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-01-19 20:29:40 +0100
committerYorhel <git@yorhel.nl>2016-01-20 21:16:55 +0100
commita6836df277867d73a71c55797984c947449772cc (patch)
treec72a326dd844c3c23a932dc76dc159200c1dfcdb /lib/VNDB/Util/Auth.pm
parent0caed2e7674e8ee7419365e76f86d06c33b8c8aa (diff)
L10N: Intern all VNDB::Util::* stuff
With some related edits in other parts of the code, mostly due to interface changes to htmlRevision() and htmlFormError(). Trivial replacements were automated by a super awesome script.
Diffstat (limited to 'lib/VNDB/Util/Auth.pm')
-rw-r--r--lib/VNDB/Util/Auth.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm
index 9c742dc7..6e1dfa5d 100644
--- a/lib/VNDB/Util/Auth.pm
+++ b/lib/VNDB/Util/Auth.pm
@@ -87,10 +87,6 @@ sub authLogout {
$self->resRedirect('/', 'temp');
$self->resCookie(auth => undef);
-
- # set l10n cookie if the user has a preferred language set
- my $l10n = $self->authPref('l10n');
- $self->resCookie(l10n => $l10n, expires => time()+31536000) if $l10n; # keep 1 year
}
@@ -204,12 +200,12 @@ sub authCheckCode {
sub _incorrectcode {
my $self = shift;
$self->resInit;
- $self->htmlHeader(title => mt '_formcode_title', noindex => 1);
+ $self->htmlHeader(title => 'Validation code expired', noindex => 1);
div class => 'mainbox';
- h1 mt '_formcode_title';
+ h1 'Validation code expired';
div class => 'warning';
- p mt '_formcode_msg';
+ p 'Please hit the back-button of your browser, refresh the page and try again.';
end;
end;