forked from cartsnitch/cartsnitch
Merge pull request #225 from cartsnitch/dev
Promote dev to UAT: bcrypt cost factor fix
This commit is contained in:
@@ -569,6 +569,7 @@ jobs:
|
|||||||
git config user.name "cartsnitch-ci[bot]"
|
git config user.name "cartsnitch-ci[bot]"
|
||||||
git config user.email "cartsnitch-ci[bot]@users.noreply.github.com"
|
git config user.email "cartsnitch-ci[bot]@users.noreply.github.com"
|
||||||
git add apps/overlays/dev/kustomization.yaml
|
git add apps/overlays/dev/kustomization.yaml
|
||||||
|
git diff --cached --quiet && echo "No image changes to deploy" && exit 0
|
||||||
git commit -m "ci(dev): update cartsnitch, auth, receiptwitness, and api images"
|
git commit -m "ci(dev): update cartsnitch, auth, receiptwitness, and api images"
|
||||||
git pull --rebase origin main
|
git pull --rebase origin main
|
||||||
git push origin main
|
git push origin main
|
||||||
@@ -667,6 +668,7 @@ jobs:
|
|||||||
git config user.name "cartsnitch-ci[bot]"
|
git config user.name "cartsnitch-ci[bot]"
|
||||||
git config user.email "cartsnitch-ci[bot]@users.noreply.github.com"
|
git config user.email "cartsnitch-ci[bot]@users.noreply.github.com"
|
||||||
git add apps/overlays/uat/kustomization.yaml
|
git add apps/overlays/uat/kustomization.yaml
|
||||||
|
git diff --cached --quiet && echo "No image changes to deploy" && exit 0
|
||||||
git commit -m "ci(uat): update cartsnitch, auth, receiptwitness, and api images"
|
git commit -m "ci(uat): update cartsnitch, auth, receiptwitness, and api images"
|
||||||
git pull --rebase origin main
|
git pull --rebase origin main
|
||||||
git push origin main
|
git push origin main
|
||||||
|
|||||||
+1
-1
@@ -37,7 +37,7 @@ export const auth = betterAuth({
|
|||||||
maxPasswordLength: 128,
|
maxPasswordLength: 128,
|
||||||
password: {
|
password: {
|
||||||
hash: async (password: string) => {
|
hash: async (password: string) => {
|
||||||
return bcrypt.hash(password, 10);
|
return bcrypt.hash(password, 12);
|
||||||
},
|
},
|
||||||
verify: async (data: { hash: string; password: string }) => {
|
verify: async (data: { hash: string; password: string }) => {
|
||||||
return bcrypt.compare(data.password, data.hash);
|
return bcrypt.compare(data.password, data.hash);
|
||||||
|
|||||||
Reference in New Issue
Block a user