More progress.

This commit is contained in:
Martin Sosic 2020-11-23 17:31:03 +01:00
parent 8ffc7ebdae
commit 85d8f5066c
2 changed files with 17 additions and 6 deletions

View File

@ -6,14 +6,19 @@ Realworld app
Here, we implement it in Wasp, by following their [specification](https://github.com/gothinkster/realworld/tree/master/spec).
Todo:
- [ ] User + auth (JWT).
- [ ] Login and signup pages.
- [ ] Settings page with logout button (no user deletion needed).
- [ ] Profile page that shows basic user info.
- [ ] Home page with navbar.
- [ ] CRUD Articles (created from Markdown).
- [x] User + auth (JWT).
- [x] Login and signup pages.
- [x] Settings page with logout button (no user deletion needed).
- [x] Profile page that shows basic user info.
- [x] Home page with navbar.
- [x] CRUD Articles (created from Markdown).
- [ ] On /article page, show author username and date of creation (of article).
- [ ] Render article content as markdown.
- [ ] For Article, use special id which contains title in the name, and display it in url?
- [ ] CR*D Comments on articles.
- [ ] Paginated list of articles.
- [ ] Show paginated list of all articles (Global Feed) on the home page.
- [ ] Show Popular Tags on home page.
- [ ] Favorite articles.
- [ ] Following other users.
- [ ] Use Bootstrap 4 styling.

View File

@ -26,6 +26,12 @@ export const updateUser = async ({ email, username, bio, profilePictureUrl, newP
username,
bio,
profilePictureUrl,
// TODO: This is a problem because I save non-hashed password!!!!
// We somehow need to make it really hard (or impossible) for user to do this by mistake,
// because if even I did it by mistake, it is likely to happen again.
// I was used to mongoose doing hashing on save and was not aware it will just save it plain as day.
// Actually, is there even a mechanism I can use to change this password?
// I don't think so!
password: newPassword || undefined
}
})