aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-09-12 12:45:11 +0000
committerGitHub <noreply@github.com>2022-09-12 12:45:11 +0000
commit264d255919f05452db182671c5aabc1652494743 (patch)
tree300f6e98a596a7075bba4128aff914c837d7102a /modules/shared.py
parenta4416f3585616f93177d85c152c5fddb583ea361 (diff)
parentfc49844aa8caae5edd2a28367c78bd5b7a847518 (diff)
downloadstable-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 'modules/shared.py')
-rw-r--r--modules/shared.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/shared.py b/modules/shared.py
index b651cd62..c0f712c9 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -42,9 +42,8 @@ parser.add_argument("--show-negative-prompt", action='store_true', help="does no
parser.add_argument("--ui-config-file", type=str, help="filename to use for ui configuration", default=os.path.join(script_path, 'ui-config.json'))
parser.add_argument("--hide-ui-dir-config", action='store_true', help="hide directory configuration from webui", default=False)
parser.add_argument("--ui-settings-file", type=str, help="filename to use for ui settings", default=os.path.join(script_path, 'config.json'))
-parser.add_argument("--gradio-debug", action='store_true', help="launch gradio with --debug option")
-parser.add_argument("--gradio-username", type=str, help="username for gradio authentication; default: user", default="user")
-parser.add_argument("--gradio-password", type=str, help="password for gradio authentication; default: no authentication", default=None)
+parser.add_argument("--gradio-debug", action='store_true', help="launch gradio with --debug option")
+parser.add_argument("--gradio-auth", type=str, help='set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"', default=None)
cmd_opts = parser.parse_args()