Commit 5068333f by Javier

Cambio a Postpago de Usuarios

parent f11cb2cb
...@@ -133,6 +133,14 @@ def create_user(phone_number: str, name: str, surname: str, password: str = None ...@@ -133,6 +133,14 @@ def create_user(phone_number: str, name: str, surname: str, password: str = None
_create_sip(phone_number, password, pbx) _create_sip(phone_number, password, pbx)
_create_did(phone_number) _create_did(phone_number)
with mariadb.connect(**DB_CREDENTIALS) as cnx:
with cnx.cursor() as cursor:
cursor.execute(
"UPDATE mbilling.pkg_user SET typepaid=1, creditlimit=30 WHERE username=?",
(phone_number,)
)
cursor.fetchone()
return password return password
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment