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.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()
|
||||
log.info('Proceso terminado correctamente...')
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue