Skip to content

Commit 04cf17d

Browse files
author
kmidkiff
committed
Fix Forgot password link
1 parent ebdf010 commit 04cf17d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"build": "./node_modules/.bin/webpack",
88
"dev-client": "./node_modules/.bin/webpack-dev-server --port 3002 --content-base public/",
99
"fullStart": "./node_modules/.bin/webpack && node ./bin/start",
10-
"debug": "node $NODE_DEBUG_OPTION ./bin/start"
10+
"debug": "node $NODE_DEBUG_OPTION ./bin/start",
11+
"test": "jest"
1112
},
1213
"repository": {
1314
"type": "git",
@@ -113,10 +114,12 @@
113114
},
114115
"devDependencies": {
115116
"babel-plugin-transform-async-to-generator": "^6.24.1",
117+
"jest": "^22.4.2",
116118
"react-hot-loader": "^3.0.0-beta.7",
119+
"servicebot-client": "^1.0.3",
117120
"supertest": "^3.0.0",
118121
"tape": "^4.8.0",
119-
"uglifyjs-webpack-plugin": "^1.0.1",
122+
"uglifyjs-webpack-plugin": "^1.2.4",
120123
"webpack-dev-server": "^1.14.1"
121124
}
122125
}

views/components/elements/forms/login.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,14 +183,16 @@ class Login extends React.Component {
183183
<button onClick={this.handleLogin} type='submit'
184184
className="btn btn-raised btn-lg btn-primary btn-block">Sign in
185185
</button>
186+
<p className="sign-up-link">
187+
<Link to={{pathname: "/forgot-password", state: {fromLogin: false}}}> Forgot
188+
Password</Link>
189+
</p>
186190
{(this.props.options && this.props.options.allow_registration.value == 'true') &&
187191
<p className="sign-up-link">Don't have an account?
188192
<span><Link to={{
189193
pathname: "/signup",
190194
state: {fromLogin: true}
191-
}}> Sign up here</Link> or </span>
192-
<Link to={{pathname: "/forgot-password", state: {fromLogin: false}}}> Forgot
193-
Password</Link>
195+
}}> Sign up here</Link></span>
194196
</p>
195197
}
196198
</form>

0 commit comments

Comments
 (0)