Skip to content

Commit 8bc3078

Browse files
committed
Fix initial setup user bug, taking the fix from #4836
1 parent 8aeb2fa commit 8bc3078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const setupDefaultUser = async () => {
3737

3838
const data = {
3939
is_deleted: 0,
40-
email: email,
40+
email: initialAdminEmail,
4141
name: "Administrator",
4242
nickname: "Admin",
4343
avatar: "",
@@ -53,7 +53,7 @@ const setupDefaultUser = async () => {
5353
.insert({
5454
user_id: user.id,
5555
type: "password",
56-
secret: password,
56+
secret: initialAdminPassword,
5757
meta: {},
5858
});
5959

0 commit comments

Comments
 (0)