diff --git a/VERSION b/VERSION index 0bee604df761bde7de6502876b5cb0504dfa8701..3f684d2d9054bb637e241b07a9b7ab154d892640 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.3 +2.3.4 diff --git a/lib/PiTube/Helpers/OAuth2.pm b/lib/PiTube/Helpers/OAuth2.pm index 6d385abcf67d579274ed69d461a9c83ee5a04c5c..d2e047e8c0bb3377526ac355380a018785e65ec6 100644 --- a/lib/PiTube/Helpers/OAuth2.pm +++ b/lib/PiTube/Helpers/OAuth2.pm @@ -23,8 +23,10 @@ sub register { my $res = $tx->result; if ($res->is_success) { + my $key = join "\n", unpack("(A64)*", $res->json->{public_key}); + $jwt = Mojo::JWT->new( - public => sprintf( KEY_FORMAT, $res->json->{public_key} ) + public => sprintf( KEY_FORMAT, $key ) ); } diff --git a/templates/live.html.ep b/templates/live.html.ep index 4b0938ec917fab6108c42a5cacb39bee77126524..78c3686c88ed85ee769103a7042bf37a703485a7 100644 --- a/templates/live.html.ep +++ b/templates/live.html.ep @@ -20,7 +20,7 @@ $('#Streams').bootstrapTable({ onClickCell: function (field, value, row, $element) { window.location.href = '/play/' + row.key; }, - formatNoMatches: function() { return '<p class="text-4xl">AktuálnÄ› neprobĂhá žádnĂ© veĹ™ejnĂ© ĹľivĂ© vysĂlánĂ. Pro zobrazenĂ neveĹ™ejnĂ˝ch vysĂlánĂ se prosĂm <a href="<%= $c->oauth2->authorize %>">pĹ™ihlaste</a></p>' }, + formatNoMatches: function() { return '<p class="text-4xl">AktuálnÄ› neprobĂhá žádnĂ© veĹ™ejnĂ© ĹľivĂ© vysĂlánĂ.<br/>Pro zobrazenĂ neveĹ™ejnĂ˝ch vysĂlánĂ se prosĂm <a href="<%= $c->oauth2->authorize %>">pĹ™ihlaste</a></p>' }, }); function rowStyle(row, index) {