2015-07-13 19:53:16 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
2015-09-30 18:30:50 +02:00
|
|
|
import { Link } from 'react-router';
|
2015-07-13 19:53:16 +02:00
|
|
|
|
2015-11-05 16:45:12 +01:00
|
|
|
import LoginForm from '../../../../ascribe_forms/form_login';
|
2015-07-13 19:53:16 +02:00
|
|
|
|
2015-11-05 16:45:12 +01:00
|
|
|
import { getLangText } from '../../../../../utils/lang_utils';
|
|
|
|
import { setDocumentTitle } from '../../../../../utils/dom_utils';
|
2015-08-24 11:22:44 +02:00
|
|
|
|
2015-07-13 19:53:16 +02:00
|
|
|
|
|
|
|
let LoginContainer = React.createClass({
|
2015-10-01 11:16:38 +02:00
|
|
|
propTypes: {
|
2016-01-11 15:14:54 +01:00
|
|
|
// Provided from PrizeApp
|
|
|
|
currentUser: React.PropTypes.object,
|
|
|
|
whitelabel: React.PropTypes.object,
|
|
|
|
|
2016-01-11 16:26:36 +01:00
|
|
|
// Provided from router
|
2015-10-01 11:16:38 +02:00
|
|
|
location: React.PropTypes.object
|
|
|
|
},
|
|
|
|
|
2015-07-13 19:53:16 +02:00
|
|
|
render() {
|
2015-10-13 17:02:03 +02:00
|
|
|
setDocumentTitle(getLangText('Log in'));
|
|
|
|
|
2015-07-13 19:53:16 +02:00
|
|
|
return (
|
|
|
|
<div className="ascribe-login-wrapper">
|
2015-08-24 11:22:44 +02:00
|
|
|
<LoginForm
|
2015-10-01 11:16:38 +02:00
|
|
|
headerMessage={getLangText('Log in with ascribe')}
|
2016-01-11 18:07:52 +01:00
|
|
|
location={this.props.location} />
|
|
|
|
<div className="ascribe-login-text">
|
2015-08-24 11:22:44 +02:00
|
|
|
{getLangText('I forgot my password') + ' '}
|
2015-09-30 18:30:50 +02:00
|
|
|
<Link to="/password_reset">{getLangText('Rescue me...')}</Link>
|
2015-07-13 19:53:16 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default LoginContainer;
|