|
|
@ -74,6 +74,8 @@ def domain_details(domain_name):
|
|
|
|
def domain_genkeys(domain_name):
|
|
|
|
def domain_genkeys(domain_name):
|
|
|
|
domain = models.Domain.query.get(domain_name) or flask.abort(404)
|
|
|
|
domain = models.Domain.query.get(domain_name) or flask.abort(404)
|
|
|
|
domain.generate_dkim_key()
|
|
|
|
domain.generate_dkim_key()
|
|
|
|
|
|
|
|
models.db.session.add(domain)
|
|
|
|
|
|
|
|
models.db.session.commit()
|
|
|
|
return flask.redirect(
|
|
|
|
return flask.redirect(
|
|
|
|
flask.url_for(".domain_details", domain_name=domain_name))
|
|
|
|
flask.url_for(".domain_details", domain_name=domain_name))
|
|
|
|
|
|
|
|
|
|
|
|