diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-12 12:45:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-12 12:45:11 +0000 |
commit | 264d255919f05452db182671c5aabc1652494743 (patch) | |
tree | 300f6e98a596a7075bba4128aff914c837d7102a /webui.py | |
parent | a4416f3585616f93177d85c152c5fddb583ea361 (diff) | |
parent | fc49844aa8caae5edd2a28367c78bd5b7a847518 (diff) | |
download | stable-diffusion-webui-gfx803-264d255919f05452db182671c5aabc1652494743.tar.gz stable-diffusion-webui-gfx803-264d255919f05452db182671c5aabc1652494743.tar.bz2 stable-diffusion-webui-gfx803-264d255919f05452db182671c5aabc1652494743.zip |
Merge pull request #329 from EyeDeck/master
Add --gradio-auth command line argument to enable Gradio authentication
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ def webui(): server_name="0.0.0.0" if cmd_opts.listen else None,
server_port=cmd_opts.port,
debug=cmd_opts.gradio_debug,
- auth=(cmd_opts.gradio_username, cmd_opts.gradio_password) if cmd_opts.gradio_password is not None else None,
+ auth=[tuple(cred.split(':')) for cred in cmd_opts.auth.strip('"').split(',')] if cmd_opts.auth else None,
)
|