centered text on landing page

This commit is contained in:
David Baldwynn 2015-11-12 15:36:23 -08:00
parent cb5e3e715f
commit 30148cecdc
5 changed files with 10 additions and 10 deletions

View file

@ -60,7 +60,7 @@ exports.forgot = function(req, res, next) {
res.render('templates/reset-password-email', {
name: user.displayName,
appName: config.app.title,
url: req.protocol+'://' + req.hostname + '/#!/auth/reset/' + token
url: req.protocol+'://' + req.headers.host + '/#!/auth/reset/' + token
}, function(err, emailHTML) {
done(err, emailHTML, user);
});
@ -103,10 +103,10 @@ exports.validateResetToken = function(req, res) {
}
}, function(err, user) {
if (!user) {
return res.redirect('/#!/password/reset/invalid');
return res.redirect('/#!/auth/reset/invalid');
}
res.redirect('/#!/password/reset/' + req.params.token);
res.redirect('/#!/auth/reset/' + req.params.token);
});
};

View file

@ -4,7 +4,7 @@
<div class="image-background">
</div>
<div class="jumbotron text-center">
<div class="row container" data-ng-if="!authentication.isAuthenticated()">
<div class="container" data-ng-if="!authentication.isAuthenticated()">
<div class="row text-center logo" style="border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 30px;">
<h3 class="col-xs-12" style="color: #FA787E; margin-bottom:0px">
<i class="fa fa-archive fa-3x"></i>

View file

@ -78,19 +78,19 @@ angular.module('users').config(['$stateProvider',
}).
state('forgot', {
url: '/password/forgot',
url: '/auth/forgot',
templateUrl: 'modules/users/views/password/forgot-password.client.view.html'
}).
state('reset-invalid', {
url: '/password/reset/invalid',
url: '/auth/reset/invalid',
templateUrl: 'modules/users/views/password/reset-password-invalid.client.view.html'
}).
state('reset-success', {
url: '/password/reset/success',
url: '/auth/reset/success',
templateUrl: 'modules/users/views/password/reset-password-success.client.view.html'
}).
state('reset', {
url: '/password/reset/:token',
url: '/auth/reset/:token',
templateUrl: 'modules/users/views/password/reset-password.client.view.html'
});
}

View file

@ -33,7 +33,7 @@
<input type="password" id="password" name="password" class="form-control" data-ng-model="credentials.password" placeholder="Password">
</div>
<div class="forgot-password">
<a href="/#!/password/forgot">Forgot your password?</a>
<a href="/#!/auth/forgot">Forgot your password?</a>
</div>
<div class="text-center form-group">
<button class="btn btn-primary" ng-click="signin()">Sign in</button>&nbsp; or&nbsp;

View file

@ -1,4 +1,4 @@
<section class="row text-center">
<h3 class="col-md-12">Password reset is invalid</h3>
<a href="/#!/password/forgot" class="col-md-12">Ask for a new password reset</a>
<a href="/#!/auth/forgot" class="col-md-12">Ask for a new password reset</a>
</section>