Commit fb408512 authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Save permanent-login flag when saving sessions

parent cff32369
......@@ -251,8 +251,9 @@ impl MedalConnection for Connection {
city = $9,
grade = $10,
sex = $11,
is_teacher = $12
WHERE id = $13",
is_teacher = $12,
permanent_login = $13
WHERE id = $14",
&[&session.username,
&session.password,
&session.salt,
......@@ -265,6 +266,7 @@ impl MedalConnection for Connection {
&session.grade,
&session.sex,
&session.is_teacher,
&session.permanent_login,
&session.id])
.unwrap();
}
......
......@@ -347,8 +347,9 @@ impl MedalConnection for Connection {
city = $9,
grade = $10,
sex = $11,
is_teacher = $12
WHERE id = $13",
is_teacher = $12,
permanent_login = $13
WHERE id = $14",
&[&session.username,
&session.password,
&session.salt,
......@@ -361,6 +362,7 @@ impl MedalConnection for Connection {
&session.grade,
&session.sex,
&session.is_teacher,
&session.permanent_login,
&session.id])
.unwrap();
}
......
......@@ -347,8 +347,9 @@ impl MedalConnection for Connection {
city = ?9,
grade = ?10,
sex = ?11,
is_teacher = ?12
WHERE id = ?13",
is_teacher = ?12,
permanent_login = ?13
WHERE id = ?14",
&[&session.username,
&session.password,
&session.salt,
......@@ -361,6 +362,7 @@ impl MedalConnection for Connection {
&session.grade,
&session.sex,
&session.is_teacher,
&session.permanent_login,
&session.id])
.unwrap();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment