Skip to content

Commit 4faec3b

Browse files
authored
Merge pull request #644 from hhaccessibility/profile-route-changes
Profile route changes
2 parents e93b0cb + dd7aa5e commit 4faec3b

13 files changed

Lines changed: 25 additions & 16 deletions

app/app/Http/Controllers/ChangePasswordController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function post(Request $request)
4343
}
4444
}
4545
if ($failing) {
46-
return Redirect::to('change-password')->withErrors($validator)->withInput();
46+
return Redirect::to('/user/change-password')->withErrors($validator)->withInput();
4747
} else {
4848
$user->password_hash = User::generateSaltedHash($request->input('new_password'));
4949
$user->save();

app/app/Http/Controllers/PasswordRecoveryController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function sendEmail(Request $request)
2626
);
2727
$validator = Validator::make(Input::all(), $validation_rules);
2828
if ($validator->fails()) {
29-
return Redirect::to('password-recovery')->withErrors($validator)->withInput();
29+
return Redirect::to('/user/password-recovery')->withErrors($validator)->withInput();
3030
;
3131
}
3232
$email = trim(Input::get('email'));
@@ -38,7 +38,7 @@ public function sendEmail(Request $request)
3838

3939
//Generate Password Recovery Link
4040
$token = str_random(60);
41-
$recoveryLink = config('app.url')."/password-recovery/".$matching_user->email."/".$token;
41+
$recoveryLink = config('app.url')."/user/password-recovery/".$matching_user->email."/".$token;
4242
$matching_user->password_recovery_token = $token;
4343
$matching_user->save();
4444

app/hhaccessibility.github.io

Lines changed: 0 additions & 1 deletion
This file was deleted.

app/resources/views/mails/password_recovery.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@
146146
<td bgcolor="#ffffff" align="center" style="padding: 20px 30px 60px 30px;">
147147
<table border="0" cellspacing="0" cellpadding="0">
148148
<tr>
149-
<td align="center" style="border-radius: 3px;" bgcolor="#7c72dc"><a href="{{$recoveryLink}}" target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px; border: 1px solid #7c72dc; display: inline-block;">Reset Password</a></td>
149+
<td align="center" style="border-radius: 3px;" bgcolor="#2e1d66"><a href="{{$recoveryLink}}" target="_blank" style="font-size: 20px; font-family: Helvetica, Arial, sans-serif; color: #ffffff; text-decoration: none; color: #ffffff; text-decoration: none; padding: 15px 25px; border-radius: 2px;display: inline-block;">Reset Password</a></td>
150150
</tr>
151151
</table>
152152
</td>
@@ -188,7 +188,7 @@
188188
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: 600px;" >
189189
<!-- HEADLINE -->
190190
<tr>
191-
<td bgcolor="#C6C2ED" align="center" style="padding: 30px 30px 30px 30px; border-radius: 4px 4px 4px 4px; color: #666666; font-family: 'Lato', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
191+
<td bgcolor="#C6C2ED" align="center" style="padding: 30px 30px 30px 30px; border-radius: 4px 4px 4px 4px; color: #949ea7; font-family: 'Lato', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 25px;" >
192192
<h2 style="font-size: 20px; font-weight: 400; color: #111111; margin: 0;">Need more help?</h2>
193193
<p style="margin: 0;"><a href="https://app.accesslocator.com/contact" target="_blank" style="color: #7c72dc;">Contact Us</a></p>
194194
</td>

app/resources/views/pages/password_recovery/form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p>Under development</p>
77

88
<div class="form-box">
9-
<form method="post" action="/password-recovery">
9+
<form method="post" action="/user/password-recovery">
1010
{!! csrf_field() !!}
1111
@include('pages.validation_messages', array('errors'=>$errors))
1212
<input class="clean" type="email" name="email" placeholder="Your Email">

app/resources/views/pages/password_recovery/reset_password.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Change Password</h1>
55

66
<div class="password-change-form">
7-
<form method="post" action="/password-recovery/reset-password">
7+
<form method="post" action="/user/password-recovery/reset-password">
88
<input type="hidden" name="user_email" value="{{ $user_email }}">
99
<input type="hidden" name="password_recovery_token" value="{{ $password_recovery_token }}">
1010
{!! csrf_field() !!}

app/resources/views/pages/profile/change_password.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<h1>Change Password</h1>
55

66
<div class="password-change-form">
7-
<form method="post" action="/change-password">
7+
<form method="post" action="/user/change-password">
88
{!! csrf_field() !!}
99
@include('pages.validation_messages', array('errors'=>$errors))
1010
<div class="row">

app/resources/views/pages/profile/profile.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<label>Password</label>
8585
</div>
8686
<div class="col-sm-8 col-xs-7">
87-
<a class="btn btn-default" href="/change-password">Change password</a>
87+
<a class="btn btn-default" href="/user/change-password">Change password</a>
8888
</div>
8989
</div>
9090
</div>

app/resources/views/pages/signin.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class="clean" name="email"
3333

3434
<div class="col-xs-12">
3535
<div class="remember-password">
36-
<a class="pull-right" href="/password-recovery"> Forgot Password? </a>
36+
<a class="pull-right" href="/user/password-recovery"> Forgot Password? </a>
3737
</div>
3838
</div>
3939

app/routes/password_recovery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
2-
Route::group(['prefix' => 'password-recovery'], function () {
2+
Route::group(['prefix' => 'user/password-recovery'], function () {
33
Route::get('/', 'PasswordRecoveryController@form');
44
Route::post('/', 'PasswordRecoveryController@sendEmail');
55
Route::get('/{user_email}/{password_recovery_token}', 'PasswordRecoveryController@passwordRecover');
66
Route::post('/reset-password', 'PasswordRecoveryController@resetPassword');
77
});
8-
Route::group(['prefix' => 'change-password'], function () {
8+
Route::group(['prefix' => 'user/change-password'], function () {
99
Route::get('/', 'ChangePasswordController@index');
1010
Route::post('/', 'ChangePasswordController@post');
1111
});

0 commit comments

Comments
 (0)