Skip to content

Commit

Permalink
bring back generic_message func, removed accidentally
Browse files Browse the repository at this point in the history
  • Loading branch information
isaak committed Jan 3, 2024
1 parent 48b081e commit 6e75a4e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/SGN/Controller/solGS/Utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,19 @@ sub stash_json_args {

}

sub generic_message {
my ($self, $c, $msg) = @_;

$c->stash->{message} = $msg;
$c->stash->{template} = "/generic_message.mas";
}

sub require_login {
my ($self, $c) = @_;

my $page = "/" . $c->req->path;
$c->res->redirect("/solgs/login/message?page=$page");

$c->detach;

}
Expand Down

0 comments on commit 6e75a4e

Please sign in to comment.