forked from elmau/empresa-libre
Add migrate auth
This commit is contained in:
commit
739ac08205
|
@ -10492,6 +10492,14 @@ def _migrate_cert(rfc):
|
||||||
cert = utils.SATCertificate
|
cert = utils.SATCertificate
|
||||||
cert.save_cert(obj)
|
cert.save_cert(obj)
|
||||||
|
|
||||||
|
auth = Emisor.get_auth()
|
||||||
|
data = {
|
||||||
|
'lst_pac': 'finkok',
|
||||||
|
'user_timbrado_finkok': auth['USER'],
|
||||||
|
'token_timbrado_finkok': auth['PASS'],
|
||||||
|
}
|
||||||
|
Configuracion.add(data)
|
||||||
|
|
||||||
desconectar()
|
desconectar()
|
||||||
log.info('Proceso terminado correctamente...')
|
log.info('Proceso terminado correctamente...')
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue