mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 22:54:26 -04:00
Encode username/password
This commit is contained in:
parent
6b2c60d552
commit
33454f68b8
3 changed files with 9 additions and 5 deletions
|
@ -5,6 +5,7 @@ import secrets
|
|||
import urllib
|
||||
from pprint import pformat
|
||||
from urllib import parse
|
||||
from urllib.parse import quote
|
||||
|
||||
from yarl import URL
|
||||
|
||||
|
@ -113,8 +114,8 @@ class HonAuth:
|
|||
"descriptor": "apex://LightningLoginCustomController/ACTION$login",
|
||||
"callingDescriptor": "markup://c:loginForm",
|
||||
"params": {
|
||||
"username": self._email,
|
||||
"password": self._password,
|
||||
"username": quote(self._email),
|
||||
"password": quote(self._password),
|
||||
"startUrl": parse.unquote(
|
||||
login_url.split("startURL=")[-1]
|
||||
).split("%3D")[0],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue