mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #3785 from Sharkitty/Hayley_Normaal
Added an event triggered when user connects to kitsu
This commit is contained in:
commit
cfa58c1475
1 changed files with 3 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ from typing import Tuple
|
|||
import gazu
|
||||
|
||||
from openpype.lib.local_settings import OpenPypeSecureRegistry
|
||||
from openpype.lib import emit_event
|
||||
|
||||
|
||||
def validate_credentials(
|
||||
|
|
@ -32,6 +33,8 @@ def validate_credentials(
|
|||
except gazu.exception.AuthFailedException:
|
||||
return False
|
||||
|
||||
emit_event("kitsu.user.logged", data={"username": login}, source="kitsu")
|
||||
|
||||
return True
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue