Ejemplo n.º 1
0
def user_creds_create(values):
    user_creds_ref = models.UserCreds()
    user_creds_ref.update(values)
    user_creds_ref.password = auth.encrypt(values['password'])
    user_creds_ref.service_password = auth.encrypt(values['service_password'])
    user_creds_ref.aws_creds = auth.encrypt(values['aws_creds'])
    user_creds_ref.save()
    return user_creds_ref
Ejemplo n.º 2
0
def user_creds_create(values):
    user_creds_ref = models.UserCreds()
    user_creds_ref.update(values)
    user_creds_ref.password = auth.encrypt(values['password'])
    user_creds_ref.service_password = auth.encrypt(values['service_password'])
    user_creds_ref.aws_creds = auth.encrypt(values['aws_creds'])
    user_creds_ref.save()
    return user_creds_ref
Ejemplo n.º 3
0
def user_creds_create(context):
    values = context.to_dict()
    user_creds_ref = models.UserCreds()
    user_creds_ref.update(values)
    user_creds_ref.password = auth.encrypt(values['password'])
    user_creds_ref.service_password = auth.encrypt(values['service_password'])
    user_creds_ref.aws_creds = auth.encrypt(values['aws_creds'])
    user_creds_ref.save(_session(context))
    return user_creds_ref