diff options
author | Vitaly Takmazov | 2018-06-21 21:53:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:53 +0300 |
commit | 2b02456c23ecec6039278cbdc5362a9551b9a58a (patch) | |
tree | 4ab9955d929545a17cee9ec4c5189fbf36da25a9 /vnext/src/components | |
parent | e35f3844e62735de9969c400a2d2fb16fde8d85d (diff) |
Facebook login
Diffstat (limited to 'vnext/src/components')
-rw-r--r-- | vnext/src/components/LoginButton.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vnext/src/components/LoginButton.js b/vnext/src/components/LoginButton.js index 6f698e16..558f61f4 100644 --- a/vnext/src/components/LoginButton.js +++ b/vnext/src/components/LoginButton.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import Icon from './Icon'; import Modal from './Modal'; - export default class LoginButton extends React.Component { constructor(props) { super(props); @@ -58,7 +57,7 @@ export default class LoginButton extends React.Component { onClose={this.toggleModal}> <div className="dialoglogin"> <p>Please, introduce yourself:</p> - <a href="/_fblogin" id="signfb"><Icon name="ei-sc-facebook" size="s" />Login with facebook</a> + <a href={`https://api.juick.com/_fblogin?state=${window.location.protocol}//${window.location.host}/_fblogin`} id="signfb"><Icon name="ei-sc-facebook" size="s" />Login with facebook</a> <a href="/_vklogin" id="signvk"><Icon name="ei-sc-vk" size="s" />Login with VK</a> <p>Already registered?</p> <form onSubmit={this.login.bind(this)}> |