Skip to content
This repository has been archived by the owner on Apr 20, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature/decoupling-improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoalves committed Mar 20, 2017
2 parents 6f22481 + 8419a87 commit 764b9e9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/Cloudoki/OaStack/Controllers/OaStackViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ public function changepassword ($token)

return view('oastack::oauth2.reset', ['error'=> $reset->message]);

if (config('oastack.redirect_url'))

return redirect()->away(config('oastack.redirect_url'));

return redirect()->route('login');
}

Expand Down
12 changes: 9 additions & 3 deletions src/Cloudoki/OaStack/Views/oauth2/subscribed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@
@else

<p>{{ trans('oastack::oauth2.user.subscribed.info', ['account'=> $name]) }}</p>

<a class="btn btn-default" href='{{ Config::get ('app.url') }}'>{{ trans('oastack::oauth2.user.subscribed.proceed') }}</a>


@if ( empty ( Config::get ('oastack.redirect_url' ) ) )

<a class="btn btn-default" href='{{ Config::get ('oastack.redirect_url') }}'>{{ trans('oastack::oauth2.user.subscribed.proceed') }}</a>

@else

<a class="btn btn-default" href='{{ Config::get ('app.url') }}'>{{ trans('oastack::oauth2.user.subscribed.proceed') }}</a>

@endif

</div>
Expand Down
2 changes: 2 additions & 0 deletions src/config/oastack.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
// Optional. The `user` model of the base application.
// The user model must use the provided Traits\User trait.
'user_model' => env('OASTACK_USER_MODEL', null),
// The URL to which users should be redirected after resetting their password
'redirect_url' => ''
);

0 comments on commit 764b9e9

Please sign in to comment.