mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-04 17:31:41 -05:00
Fixes #36.
This commit is contained in:
parent
f10425919f
commit
f35a2e05c1
5 changed files with 10 additions and 8 deletions
|
@ -1,5 +1,10 @@
|
|||
# ChangeLog
|
||||
|
||||
### v1.2.1
|
||||
24-May-2016
|
||||
|
||||
* Solves issue with social redirect flow being redirected to a faulty urls: #36
|
||||
|
||||
### v1.2.1
|
||||
10-May-2016
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# React Accounts UI
|
||||
|
||||
Current version 1.2.1
|
||||
Current version 1.2.2
|
||||
|
||||
## Features
|
||||
|
||||
|
|
|
@ -29,10 +29,6 @@ export function hasPasswordService() {
|
|||
|
||||
export function loginResultCallback(redirect, error) {
|
||||
if (Meteor.isClient) {
|
||||
if (typeof redirect === 'string'){
|
||||
window.location.href = redirect;
|
||||
}
|
||||
|
||||
if (typeof redirect === 'function'){
|
||||
redirect();
|
||||
}
|
||||
|
|
|
@ -73,7 +73,7 @@ export class LoginForm extends Tracker.Component {
|
|||
if (nextProps.formState != this.state.formState) {
|
||||
this.setState({
|
||||
formState: nextProps.formState
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -530,7 +530,8 @@ export class LoginForm extends Tracker.Component {
|
|||
}
|
||||
|
||||
login = Meteor["loginWith" + capitalService()];
|
||||
login({requestPermissions: Accounts.ui._options.requestPermissions}, (error) => {
|
||||
const requestPermissions = Accounts.ui._options.requestPermissions[service] || [];
|
||||
login({ requestPermissions }, (error) => {
|
||||
if (error) {
|
||||
this.showMessage(T9n.get(`error.accounts.${error.reason}`) || T9n.get("Unknown error"));
|
||||
} else {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Package.describe({
|
||||
name: 'std:accounts-ui',
|
||||
version: '1.2.1',
|
||||
version: '1.2.2',
|
||||
summary: 'Accounts UI for React in Meteor 1.3',
|
||||
git: 'https://github.com/studiointeract/accounts-ui',
|
||||
documentation: 'README.md'
|
||||
|
|
Loading…
Add table
Reference in a new issue