1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Fixed login 'intended' redirect for custom urls.

Also changed social account detach wording.
This commit is contained in:
Dan Brown
2016-08-21 14:49:40 +01:00
parent 437dce7756
commit f8a299caee
3 changed files with 15 additions and 5 deletions

View File

@ -215,7 +215,7 @@ class SocialAuthService
{
session();
auth()->user()->socialAccounts()->where('driver', '=', $socialDriver)->delete();
\Session::flash('success', $socialDriver . ' account successfully detached');
session()->flash('success', title_case($socialDriver) . ' account successfully detached');
return redirect(auth()->user()->getEditUrl());
}