Skip to content
Snippets Groups Projects

Registrace

Compare and Show latest version
3 files
+ 7
4
Compare changes
  • Side-by-side
  • Inline

Files

+ 3
2
@@ -4,6 +4,7 @@ import argparse
import sys
import mo.db as db
import mo.email
import mo.users
import mo.util
@@ -44,9 +45,9 @@ mo.util.log(db.LogType.user, user.user_id, {
if args.passwd is not None:
mo.users.set_password(user, args.passwd)
token = mo.users.make_activation_token(user)
session.commit()
if args.passwd is None:
token = mo.users.make_activation_token(user)
mo.util.send_new_account_email(user, token)
mo.email.send_new_account_email(user, token)
Loading