Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 1e52a49

Browse files
author
Dominik Frantisek Bucik
committed
fix: 🐛 Fix direct registration in SpAuthorization
1 parent d7d22c5 commit 1e52a49

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/Auth/Process/SpAuthorization.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected function registerDirectly(array &$request, Group $group, bool $skipNot
324324
$nameParts = explode(':', $group->getUniqueName(), 2);
325325
$params[PerunConstants::VO] = $nameParts[0];
326326
if (!empty($group) && PerunConstants::GROUP_MEMBERS !== $nameParts[1]) {
327-
$params[PerunConstants::GROUP] = $group;
327+
$params[PerunConstants::GROUP] = $nameParts[1];
328328
}
329329
$params[PerunConstants::TARGET_NEW] = $callback;
330330
$params[PerunConstants::TARGET_EXISTING] = $callback;

templates/sp-authorization-select-tpl.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@
5050

5151
echo '<div class="msg">' . $this->t('{perun:perun:choose-vo-and-group-tpl_message}') . '</div>';
5252
?>
53-
<div class="list-group">
53+
<div class="list-group mt-4">
5454
<form action="" method="post">
55-
<h4 class="selectGroup"
56-
style="display: none"><?php echo $this->t('{perun:perun:choose-vo-and-group-tpl_select-group}'); ?></h4>
57-
<select class="selectGroup form-control" name="selectedGroup" class="form-control" required>
55+
<label for="selectedGroup">
56+
<?php echo $this->t('{perun:perun:choose-vo-and-group-tpl_select-group}'); ?>
57+
</label>
58+
<select class="selectGroup form-control" id="selectedGroup" name="selectedGroup" class="form-control mt-4" required>
5859
<?php
5960
foreach ($registrationData as $group) {
6061
echo '<option class="groupOption" value="' . $group->getUniqueName() . '" >'
@@ -63,9 +64,8 @@
6364
}
6465
?>
6566
</select>
66-
6767
<input type="submit" value="<?php echo $this->t('{perun:perun:choose-vo-and-group-tpl_continue}'); ?>"
68-
class="btn btn-lg btn-primary btn-block">
68+
class="btn btn-lg btn-primary btn-block mt-4">
6969
</form>
7070
</div>
7171

0 commit comments

Comments
 (0)