Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <LoginBar AuthRes={this.state.AuthResults} IsLoggedIn={this.state.isLoggedIn}/>
- LoginAuth = (Res) => {
- if (Res.username === this.state.Username && Res.password === this.state.Password) {
- this.setState({
- IsLoggedIn: true,
- }, function(){
- });
- this.hideModal();
- } else {
- console.log("Gets to login auth and false");
- }
- }
- CheckLoginAuth() {
- console.log("gets to check login auth");
- console.log(this.state.AuthRes);
- console.log("Username=" + this.state.Username);
- console.log("Password=" + this.state.Password);
- var self = this;
- this.props.AuthRes.map(function (Res) {
- console.log("ID=" + Res.id);
- console.log("Username=" + Res.username);
- console.log("Password=" + Res.password);
- self.LoginAuth(Res);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement