1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-11-25 22:12:28 +02:00

Fix the admin creation command

This commit is contained in:
Pierre Jaury
2016-06-25 14:25:22 +02:00
parent ec12ee9703
commit 2095b3f189

View File

@@ -1,5 +1,6 @@
from freeposte import manager, db
from freeposte.admin import models
from passlib import hash
@manager.command
@@ -20,7 +21,7 @@ def initdb():
def admin(localpart, domain_name, password):
""" Create an admin user
"""
domain = models.Domain(name=domain)
domain = models.Domain(name=domain_name)
user = models.User(
localpart=localpart,
domain=domain,