Allow users to set login shell in profile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-03-10 19:43:51 -06:00
parent 2d31eaa148
commit 91fc8a65a2
5 changed files with 30 additions and 5 deletions

View File

@@ -24,8 +24,9 @@ class ProfileController extends Controller {
last_name: user.last_name,
email: user.email,
uid: user.uid,
tagline: user.tagline,
tagline: user.tagline || '',
user_id: user.id,
login_shell: user.login_shell || '',
...(user.notify_config ? { notify_config: await user.notify_config.to_api() } : {})
})
}
@@ -158,6 +159,7 @@ class ProfileController extends Controller {
user.last_name = req.body.last_name
user.email = req.body.email
user.tagline = req.body.tagline
user.login_shell = req.body.login_shell
// Save the record
await user.save()