Merge remote-tracking branch 'origin/master'

This commit is contained in:
2026-02-14 11:44:15 +03:00
parent 1d15b619f9
commit 406d9e8ce5
73 changed files with 531 additions and 8 deletions

View File

@@ -85,17 +85,14 @@ async function submit () {
loading.value = true
try {
// 🔐 TOKEN interceptor ile otomatik
const res = await api.post('/password/change', {
await api.post('/password/change', {
current_password: currentPassword.value,
new_password: newPassword.value
})
// 🔄 Session güncelle
auth.setSession(res.data)
auth.forcePasswordChange = false
localStorage.setItem('forcePasswordChange', '0')
router.replace('/app')
// Şifre değişimi sonrası tekrar giriş zorunlu
auth.clearSession()
router.replace('/login')
} catch (e) {
error.value =
@@ -109,4 +106,3 @@ async function submit () {
</script>