diff --git a/README.md b/README.md index 49ccb3e..31e771f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ The purpose of this library is : ```javascript -import { View, Text, Component } from 'react-native'; +import React, { Component } from 'react'; +import { View, Text } from 'react-native'; import Meteor, { createContainer } from 'react-native-meteor'; Meteor.connect('http://192.168.X.X:3000/websocket');//do this only once @@ -249,6 +250,13 @@ import { FSCollectionImagesPreloader } from 'react-native-meteor'; * [Custom scene renderer](https://github.com/aksonov/react-native-router-flux#switch-new-feature) which allows to select tab scene to show depending from app state. It could be useful for authentication, restricted scenes, etc. +# Author + +* Théo Mathieu ([@Mokto](https://github.com/Mokto)) +* From [inProgress](https://in-progress.io) + +![inProgress](https://in-progress.io/wp-content/uploads/2016/04/LOGO-RESPONSIVE-IPG-01-copie-1.png?2a6543) + # Want to help ? Pull Requests and issues reported are welcome ! :) diff --git a/src/user/User.js b/src/user/User.js index aaeae73..fb2b1cf 100644 --- a/src/user/User.js +++ b/src/user/User.js @@ -65,6 +65,16 @@ module.exports = { }) }); }, + _login(user, callback) { + this._startLoggingIn(); + this.call("login", user, (err, result)=>{ + this._endLoggingIn(); + + this._handleLoginCallback(err, result); + + typeof callback == 'function' && callback(err); + }); + }, _startLoggingIn() { this._isLoggingIn = true; Data.notify('loggingIn');