mirror of
https://github.com/YunoHost-Apps/librephotos_ynh.git
synced 2024-09-03 19:36:12 +02:00
Reactivate disabled users on re-creation
This commit is contained in:
parent
a57d759e72
commit
9523e8a45b
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ User = get_user_model()
|
|||
try:
|
||||
user = User.objects.get(username='$user')
|
||||
user.scan_directory='/home/yunohost.multimedia/$user/Picture'
|
||||
user.is_active = True
|
||||
user.save()
|
||||
except User.DoesNotExist:
|
||||
User.objects.create_user('$username', email='$mail', scan_directory='/home/yunohost.multimedia/$user/Picture')
|
||||
|
|
Loading…
Add table
Reference in a new issue