Skip to content

Commit

Permalink
Merge pull request #76 from deanblackborough/v1.12.0
Browse files Browse the repository at this point in the history
v1.12.0
  • Loading branch information
deanblackborough authored Oct 11, 2023
2 parents 85ad8bc + 677f0dc commit 9da5fef
Show file tree
Hide file tree
Showing 11 changed files with 785 additions and 629 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public function createPasswordProcess(Request $request): RedirectResponse
$request->only(['token', 'email', 'password', 'password_confirmation'])
);

if ($result === 204) {
return redirect()->route('registration-complete');
if ($result === 204 && Auth::attempt($request->only(['email', 'password']), false)) {
return redirect()->route('home');
}

if ($result === 422) {
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function boot(): void
{
$api_status = [];

if (app()->environment('local')) {
if (app()->runningInConsole() === false && app()->environment('local')) {
$api = new Service();
$status = $api->status();
if ($status['status'] === 200) {
Expand Down
1 change: 1 addition & 0 deletions app/Service/Api/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public function authenticationRegister(array $payload): array
[
'name' => $payload['name'],
'email' => $payload['email'],
'registered_via' => 'budget',
]
);
}
Expand Down
Loading

0 comments on commit 9da5fef

Please sign in to comment.