Skip to content
Snippets Groups Projects
Verified Commit 2e976696 authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Bugfix, oprava kompatibility OIDC

parent 05d197d3
No related branches found
No related tags found
No related merge requests found
Pipeline #20956 passed
image: docker:24 image: docker:latest
variables: variables:
DOCKER_TLS_CERTDIR: "/certs" DOCKER_TLS_CERTDIR: "/certs"
services: services:
- docker:24-dind - docker:dind
before_script: before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
......
2.8.2 2.8.3
...@@ -68,7 +68,7 @@ sub create ($c) { ...@@ -68,7 +68,7 @@ sub create ($c) {
my $shortcut = $user->add_to_shortcuts({ my $shortcut = $user->add_to_shortcuts({
url => $url, url => $url,
title => $title, title => ($title || ''),
shortcut => ($custom || $c->schema->resultset('Shortcut')->generate()) shortcut => ($custom || $c->schema->resultset('Shortcut')->generate())
}); });
......
...@@ -23,8 +23,9 @@ sub register { ...@@ -23,8 +23,9 @@ sub register {
my $res = $tx->result; my $res = $tx->result;
if ($res->is_success) { if ($res->is_success) {
my $key = join "\n", unpack("(A64)*", $res->json->{public_key});
$jwt = Mojo::JWT->new( $jwt = Mojo::JWT->new(
public => sprintf( KEY_FORMAT, $res->json->{public_key} ) public => sprintf( KEY_FORMAT, $key )
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment