Fixed set password logic

if user does not provides a redirect uri
redirect by default to profile page

Change-Id: I9f3522771135677f5689d9fdbeb3cae053e1e6d3
Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
smarcet 2020-08-06 12:07:08 -03:00
parent 444635b580
commit 6284c47598
2 changed files with 4 additions and 1 deletions

View File

@ -10,8 +10,11 @@
href = href +'?email=' + email;
setTimeout(function(){ window.location = href; }, 3000);
return;
}
setTimeout(function(){ window.location = '/accounts/user/profile'; }, 3000);
});
// End of closure.

View File

@ -19,7 +19,7 @@
@if($redirect_uri)
<p>Now you will be redirected to <a id="redirect_url" name="redirect_url" href="{{$redirect_uri}}">{{$redirect_uri}}</a></p>
@else
<p> Now you can <a href="{!!URL::action("UserController@getLogin") !!}">Login</a> here.</p>
<p> Now you can <a href="{!!URL::action("UserController@getLogin") !!}">Complete your Profile</a> here.</p>
@endif
</div>
</div>