Skip to content

Auth#4

Open
khalska wants to merge 19 commits intomasterfrom
auth
Open

Auth#4
khalska wants to merge 19 commits intomasterfrom
auth

Conversation

@khalska
Copy link
Copy Markdown
Owner

@khalska khalska commented Jun 19, 2017

No description provided.

@khalska khalska requested review from MysticEyeBlink and adkasp June 19, 2017 12:25
const posts = getState().posts;
postId = getState().postToDelete;

let posts = getState().posts;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const

}

const myParams = Object.keys(data).map((key) => {
return encodeURIComponent(key) + '=' + encodeURIComponent(data[key]);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

template string

};
}

export function setToken(token) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if I refresh browser window. Will I be still logged in?

}

onHandleButton() {
this.props.signIn('luannhayes@qualitern.com', 'lesa');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

<Layout>
<div className={classNames('LoginPage text-center')}>
<h4> Log in </h4>
<input type="text" name="myLoginReact" autoComplete="on"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autocomplete="on" not safe at all

<li className={classNames('Post list-group-item panel row')}>
<div className={classNames('Post_data col-md-10')}>
<li id={`post${this.props.id}`} className={ classNames('Post list-group-item panel row',
(this.props.userId === this.props.myId) ? 'Post--my-post' : '') }>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Post--my-post': this.props.userId === this.props.myId

<li className="User">
<input type="radio" id={`input${this.props.name}`} value={this.props.id} name="userRadio" />
<label htmlFor={`input${this.props.name}`}>{this.props.name}</label>
<li className={classNames('User', (this.props.id === this.props.myId) ? 'actual' : '')}>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify it

this.props.isLogged &&
this.__renderUserData()
}
{ !this.props.isLogged &&
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code duplication (you can move it to one if)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants