Skip to content

Mean project (User Authentication issue#31)#33

Merged
Anntol merged 47 commits intodevelopfrom
mean-project
Jan 23, 2021
Merged

Mean project (User Authentication issue#31)#33
Anntol merged 47 commits intodevelopfrom
mean-project

Conversation

@Anntol
Copy link
Owner

@Anntol Anntol commented Jan 15, 2021

  • Add express server
  • Add MongoDB connection
  • Add SignUp component
  • Add LogIn Component
  • Add Menu
  • Implement LogOut
  • Add automatic LogOut when token is exprired
  • Implement storing token in local storage to allow autologin on page reload

Copy link
Collaborator

@kastrubait kastrubait left a comment

Choose a reason for hiding this comment

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

I could not run

<mat-form-field>
<input matInput name="email" ngModel type="email" placeholder="E-Mail" #emailInput="ngModel" required email />
<mat-error *ngIf="emailInput.invalid">Please enter a valid email.</mat-error>
</mat-form-field>
Copy link
Collaborator

Choose a reason for hiding this comment

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

This component is very similar with LoginComponent. I think it's worth to think about how to create one common form component

Copy link
Owner Author

Choose a reason for hiding this comment

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

I've implemented it that way to have ability to add more properties to SignUp form in future (name, avatar etc...)

}
const { email, password } = form.value as AuthData;
this.authService.createUser(email, password);
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's better to pass the data as an object User

@coriander31415
Copy link
Collaborator

@Anntol
When Sign-up or Log-in:
image

@Anntol
Copy link
Owner Author

Anntol commented Jan 17, 2021

@Anntol Anntol temporarily deployed to rsclone-ant January 18, 2021 19:04 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 18, 2021 19:19 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 21, 2021 10:37 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 21, 2021 16:08 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 21, 2021 17:22 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 21, 2021 20:57 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 21, 2021 21:13 Inactive
@Anntol Anntol temporarily deployed to rsclone-ant January 21, 2021 22:08 Inactive
@Anntol
Copy link
Owner Author

Anntol commented Jan 22, 2021

Known issues after merge:

  • Router shows multiple pages at once
  • The is no routing for projects page
  • App does not support automatic rebuilding in dev
  • Menu link is broken, it reloads page instead of opening
  • Menu router links and visibility criteria are missing
  • App redirects to home page after entering input field
  • Login and SignUp components should be merged to one
  • Styles are missing in Login component
  • Need Translate on Login page
  • Show error when login fails

@Anntol Anntol closed this Jan 22, 2021
@Anntol Anntol reopened this Jan 22, 2021
@Anntol Anntol temporarily deployed to rsclone-ant January 22, 2021 23:46 Inactive
@Anntol Anntol merged commit d71194b into develop Jan 23, 2021
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.

3 participants