Skip to content

Commit 296f03a

Browse files
committed
fix: typo in hook internal name
1 parent 0d9658b commit 296f03a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

leancloud/engine/leanengine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def dispatch_on_login(_cloud_codes, app_params, params):
517517
return func(user)
518518

519519
def register_on_auth_data(_cloud_codes, func):
520-
func_name = "__on_auth_data__User"
520+
func_name = "__on_authdata__User"
521521

522522
if func_name in _cloud_codes:
523523
raise RuntimeError("on authdata is already registered")
@@ -529,7 +529,7 @@ def dispatch_on_auth_data(_cloud_codes, app_params, params):
529529
if not current_hook_key or current_hook_key != HOOK_KEY:
530530
raise LeanEngineError(code=401, message="Unauthorized.")
531531

532-
func = _cloud_codes.get("__on_auth_data__User")
532+
func = _cloud_codes.get("__on_authdata__User")
533533
if not func:
534534
return
535535

0 commit comments

Comments
 (0)