(self, username, password)
Creates the user.
Creates the user.
Creates the user .
def run(self, username, password):
        """Creates the user."""
        if not password:
            password = self.get_password_from_prompt()
        if not isinstance(password, six.text_type):
            password = codecs.decode(password, 'utf-8')
        if not isinstance(username, six.text_type):
            username = codecs.decode(username, 'utf-8')
        user = User.get_or_create(username=username)
        user.set_password(plaintext=password)
        db_session.add(user)
        db_session.commit()
        sys.stdout.write('User {0:s} created/updated\n'.format(username))
def run ( self , username , password ) : if not password : password = self . get_password_from_prompt ( ) if not isinstance ( password , six . text_type ) : password = codecs . decode ( password , 'utf-8' ) if not isinstance ( username , six . text_type ) : username = codecs . decode ( username , 'utf-8' ) user = User . get_or_create ( username = username ) user . set_password ( plaintext = password ) db_session . add ( user ) db_session . commit ( ) sys . stdout . write ( 'User {0:s} created/updated\n' . format ( username ) )