Allow users to set login shell in profile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user