Skip to content

Conversation

@hasansaad1
Copy link
Collaborator

relates #6 , set up the authentication , and a routing for the userPage

MarlenAw and others added 3 commits January 22, 2018 17:37
relates #4 to be continued
#4 , set up the authintecation and the userPage.
@claireinez
Copy link
Collaborator

Where's the user story for this? You've linked it to the user journey.

@claireinez
Copy link
Collaborator

Also, this needs to be reviewed by your teammates first so removing assignment for me and Mario for now.

@claireinez claireinez requested review from SamiSha99 and ionush and removed request for Karyum and claireinez January 24, 2018 10:37
Copy link
Collaborator

@SamiSha99 SamiSha99 left a comment

Choose a reason for hiding this comment

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

Looks good for me, I don't see any issues to comment on.

@SamiSha99 SamiSha99 mentioned this pull request Jan 24, 2018
Copy link
Collaborator

@ionush ionush left a comment

Choose a reason for hiding this comment

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

cool

res.writeHead(200, {"Content-Type": "text/html"});
res.end("Invalid username or password");
} else {
var cookie = jwt.sign(JSON.stringify(result), process.env.SECRET);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why var and not const?

text-decoration: none;
color: #fff;
}
font-family: Roboto;
Copy link
Collaborator

Choose a reason for hiding this comment

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

There should be a fallback font if the user doesn't have this font

</LandingNavbar>

<SignupDiv>
<form className="form-3" action='/api/newUser' method='POST'>
Copy link
Collaborator

Choose a reason for hiding this comment

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

What kind of a classname is this? form-3 tells me nothing...

src/js/Login.jsx Outdated
return (<div>

<LoginDiv>
<form onSubmit={this.handleSubmit} action="/api/login" method="POST" className="form-3">
Copy link
Collaborator

Choose a reason for hiding this comment

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

What is this classname???

if (err) {
cb(err);
} else {
// console.log('post.rows:', post.rows);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get rid of this commented out code

if(err){
return cb(err)
}
if(res.rows.length==0){
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not triple equals?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants