summaryrefslogtreecommitdiff
path: root/ui/app/components/login.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/login.js')
-rw-r--r--ui/app/components/login.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/app/components/login.js b/ui/app/components/login.js
index 9ff6541..0a47d58 100644
--- a/ui/app/components/login.js
+++ b/ui/app/components/login.js
@@ -14,6 +14,7 @@ class Login extends React.Component {
static get defaultProps() {return{
rememberAllowed: false, // if set, show remember password checkbox
+ autoAllowed: false, // if set, allow auto setup of provider
domain: null, // if set, only allow this domain
address: null, // if set, only allow this username@domain
onLogin: null, // callback
@@ -391,7 +392,7 @@ class Login extends React.Component {
doLogin() {
let account = Account.findOrAdd(this.state.username)
- account.login(this.state.password).then(
+ account.login(this.state.password, this.props.autoAllowed).then(
account => {
this.setState({loading: false})
if (this.props.onLogin) {