Skip to content

Commit 7d269bf

Browse files
committed
design fixes for reset password #129
1 parent 34d912d commit 7d269bf

File tree

6 files changed

+29
-16
lines changed

6 files changed

+29
-16
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<form ng-submit="vm.submit()">
1+
<form ng-submit="vm.submit()" class="ForgotPassword-form" layout="row" layout-align="center center">
22
<div>
3-
<md-input-container>
3+
<md-input-container class="ForgotPassword-input">
44
<label>Email</label>
55
<input type="email" ng-model="vm.email">
66
</md-input-container>
7-
</div>
87

9-
<md-button type="submit" class="md-primary md-raised">Submit</md-button>
8+
<md-button type="submit" class="md-primary md-raised">Submit</md-button>
9+
</div>
1010
</form>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.ForgotPassword-form{
2+
min-height: 200px;
3+
}
4+
5+
.ForgotPassword-input{
6+
margin-bottom: 0;
7+
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
<div class="ResetPassword-loader" ng-if="!vm.isValidToken" layout="row" layout-align="center center">
2-
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
3-
</div>
1+
<form class="ResetPassword-form" ng-submit="vm.submit()" layout="row" layout-align="center center">
42

5-
<form ng-submit="vm.submit()" ng-show="vm.isValidToken">
6-
<div>
7-
<md-input-container>
3+
<div ng-if="!vm.isValidToken" layout="row" layout-align="center center">
4+
<md-progress-circular md-mode="indeterminate"></md-progress-circular>
5+
</div>
6+
7+
<div ng-show="vm.isValidToken">
8+
<md-input-container class="ResetPassword-input">
89
<label>Password</label>
910
<input type="password" ng-model="vm.password">
1011
</md-input-container>
11-
</div>
1212

13-
<div>
14-
<md-input-container>
13+
<md-input-container class="ResetPassword-input">
1514
<label>Confirm Password</label>
1615
<input type="password" ng-model="vm.password_confirmation">
1716
</md-input-container>
17+
18+
<md-button type="submit" class="md-primary md-raised">Submit</md-button>
1819
</div>
1920

20-
<md-button type="submit" class="md-primary md-raised">Submit</md-button>
2121
</form>
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
.ResetPassword-loader{
1+
.ResetPassword-form{
22
min-height: 300px;
33
}
4+
5+
.ResetPassword-input{
6+
margin-bottom: 0;
7+
}

app/Http/Controllers/Auth/PasswordResetController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function sendResetLinkEmail(Request $request)
2929

3030
Mail::send('auth.reset_link', compact('email', 'token'), function ($mail) use ($email) {
3131
$mail->to($email)
32-
->from('noreply@localhost')
32+
->from('noreply@example.com')
3333
->subject('Password reset link');
3434
});
3535

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Your reset password link:
22

3+
<a href="http://localhost:8000/#/reset-password/{{$email}}/{{$token}}">
34
http://localhost:8000/#/reset-password/{{$email}}/{{$token}}
5+
</a>

0 commit comments

Comments
 (0)