This commit is contained in:
Tim Brandin 2016-05-24 22:23:00 +02:00
parent f10425919f
commit f35a2e05c1
5 changed files with 10 additions and 8 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
# React Accounts UI
Current version 1.2.1
Current version 1.2.2
## Features

View file

@ -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();
}

View file

@ -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 {

View file

@ -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'