Commit f71c85b4 by Jose Antonio

Bug Fixed - delete password object before save model

parent c2cc3fb9
...@@ -215,6 +215,7 @@ module.exports = { ...@@ -215,6 +215,7 @@ module.exports = {
throw new Error("Error when looking for user"); throw new Error("Error when looking for user");
supervisor.arasaacLicense = true; supervisor.arasaacLicense = true;
delete supervisor.password;
supervisor.save(); supervisor.save();
res.ok(); res.ok();
......
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 sign in to comment