Skip to content

Commit

Permalink
.env.example update with jwt secret
Browse files Browse the repository at this point in the history
  • Loading branch information
scammo committed Jan 8, 2024
1 parent 951227e commit 3a711e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
3 changes: 3 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

JWT_SECRET=DgShc8SKxGUlu5px5PjnMjkTCQVZUsS8ZkW3gEMfwImdbCsQIH6apWtEyYCZlLGp
JWT_ALGO=HS256
10 changes: 1 addition & 9 deletions backend/app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,6 @@ public function updatePassword(User $user, Request $request){
}

public function createInitialRootUser(){
if(User::where('username', 'root')->first()){
abort(403);
}
$user = new User();
$user->username = "root";
$user->email = "[email protected]";
$user->password = Hash::make("root&changeMe");
$user->save();
return $user;
return 'test';
}
}

0 comments on commit 3a711e3

Please sign in to comment.