示例#1
0
def user_creds_get(user_creds_id):
    result = model_query(None, models.UserCreds).get(user_creds_id)
    result.password = auth.decrypt(result.password)
    result.service_password = auth.decrypt(result.service_password)
    result.aws_creds = auth.decrypt(result.aws_creds)

    return result
示例#2
0
def user_creds_get(user_creds_id):
    db_result = model_query(None, models.UserCreds).get(user_creds_id)
    # Return a dict copy of db results, do not decrypt details into db_result
    # or it can be committed back to the DB in decrypted form
    result = dict(db_result)
    result['password'] = auth.decrypt(result['password'])
    result['service_password'] = auth.decrypt(result['service_password'])
    result['aws_creds'] = auth.decrypt(result['aws_creds'])
    return result
示例#3
0
文件: api.py 项目: nakamichi/heat
def user_creds_get(user_creds_id):
    db_result = model_query(None, models.UserCreds).get(user_creds_id)
    # Return a dict copy of db results, do not decrypt details into db_result
    # or it can be committed back to the DB in decrypted form
    result = dict(db_result)
    result['password'] = auth.decrypt(result['password'])
    result['service_password'] = auth.decrypt(result['service_password'])
    result['aws_creds'] = auth.decrypt(result['aws_creds'])
    return result