Merge pull request #28 from linux-odyssey/fix-cookie

fix: change cookie setting, prevent form trigger twice
This commit is contained in:
Lin, Hung-Shin authored and GitHub committed 2023-09-18 23:38:00 +08:00
commit 2524acecf4
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -155,7 +155,7 @@ const goBack = () => {
</p>
<button
class="inline-flex justify-center rounded-lg text-sm font-black py-2 mt-3 bg-text-primary text-background w-full"
@click="handleSubmit"
type="submit"
>
<span v-if="isRegister">Sign up</span>
<span v-else>Log in / Sign up</span>
+2 -2
View File
@@ -10,8 +10,8 @@ export default session({
rolling: true,
cookie: {
httpOnly: true,
secure: config.isProduction,
sameSite: 'strict',
secure: false,
sameSite: 'lax',
maxAge: config.sessionMaxAge,
},
store: MongoStore.create({