mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
refactor: rename
This commit is contained in:
parent
ff1238a56f
commit
7674d8480e
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ def try_auto_create(address: str) -> Optional[Alias]:
|
|||
except EmailNotValidError:
|
||||
return None
|
||||
|
||||
alias = try_auto_create_catch_all_domain(address)
|
||||
alias = try_auto_create_via_domain(address)
|
||||
if not alias:
|
||||
alias = try_auto_create_directory(address)
|
||||
|
||||
|
@ -122,8 +122,8 @@ def try_auto_create_directory(address: str) -> Optional[Alias]:
|
|||
return alias
|
||||
|
||||
|
||||
def try_auto_create_catch_all_domain(address: str) -> Optional[Alias]:
|
||||
"""Try to create an alias with catch-all domain"""
|
||||
def try_auto_create_via_domain(address: str) -> Optional[Alias]:
|
||||
"""Try to create an alias with catch-all or auto-create rules on custom domain"""
|
||||
|
||||
# try to create alias on-the-fly with custom-domain catch-all feature
|
||||
# check if alias is custom-domain alias and if the custom-domain has catch-all enabled
|
||||
|
|
Loading…
Reference in a new issue