This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2023-06-16 10:39:03 +00:00
|
|
|
from ereuse_devicehub.db import db
|
|
|
|
from ereuse_devicehub.resources.user.models import User
|
|
|
|
|
|
|
|
|
|
|
|
def set_dlt_user(email, password):
|
|
|
|
u = User.query.filter_by(email=email).one()
|
|
|
|
api_token = u.set_new_dlt_keys(password)
|
2024-02-05 13:54:00 +00:00
|
|
|
# u.allow_permitions(api_token)
|
2023-06-16 10:39:03 +00:00
|
|
|
db.session.commit()
|