Fix the admin creation command

master
Pierre Jaury 9 years ago
parent ec12ee9703
commit 2095b3f189

@ -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,

Loading…
Cancel
Save