Mercurial > hg
comparison hgweb.cgi @ 37997:71cf20d47f25
phabricator: split auth.url into the standard auth.schemes and auth.prefix
It seems better to reuse the existing function to find the proper [auth] block,
even if not all of the possible settings may be of interest.
The other callers of readauthforuri() make a trip through the password database
to fetch the user from the URI. But in the little experimenting I did here, the
username always came back as None. Since readauthforuri() wants it to make sure
that user@prefix matches user@url, it seems that parsing the URL and pulling out
the user component should be equivalent.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 14 May 2018 23:00:30 -0400 |
parents | 4b0fc75f9403 |
children | 47ef023d0165 |
comparison
equal
deleted
inserted
replaced
37996:0fa050bc68cb | 37997:71cf20d47f25 |
---|