Einstellungen im Profilmenü verlinken
This commit is contained in:
parent
920b8e895a
commit
972fec83ab
4 changed files with 19 additions and 1 deletions
|
|
@ -48,6 +48,18 @@ class UserController
|
|||
]);
|
||||
}
|
||||
|
||||
/** Leitet zu den eigenen Profil-Einstellungen weiter. */
|
||||
public function settings(): void
|
||||
{
|
||||
$userId = Auth::id();
|
||||
|
||||
if ($userId === null) {
|
||||
redirect('/login');
|
||||
}
|
||||
|
||||
redirect('/member/' . $userId . '/edit');
|
||||
}
|
||||
|
||||
public function create(): void
|
||||
{
|
||||
// Im Original ohne Funktion.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue