mirror of
https://github.com/usememos/memos.git
synced 2025-02-22 22:27:37 +01:00
* feat: no need to log in to view memos * chore: add a normal user to seed * feat: page for other members * fix: replace window.location * fix: can not get username on home * fix: check userID * fix: can visit other user's page after login * fix: do not redirect on wrong path * fix: path error when clicked heatmap * refactor: revise for review * chore: remove unused import * refactor: revise for review * feat: update each user's route to /u/:userId. * chore: eslint for import sort * refactor: revise for review
40 lines
608 B
SQL
40 lines
608 B
SQL
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`email`,
|
|
`role`,
|
|
`name`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
101,
|
|
'demo@usememos.com',
|
|
'OWNER',
|
|
'Demo Owner',
|
|
'demo_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
);
|
|
|
|
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`email`,
|
|
`role`,
|
|
`name`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
102,
|
|
'jack@usememos.com',
|
|
'USER',
|
|
'Jack',
|
|
'jack_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
);
|