Files
clinicpro/graphify-out/cache/ast/v0.8.44/881c7b0774d7a8311ee38b6b9efd2c00d50ab3758b83acb226217638710104ad.json
T
hamed 8b6d431f61 feat(auth): integrate Captcha validation in PasswordAuthenticator
- Added CaptchaGuard dependency to PasswordAuthenticator.
- Implemented Captcha validation in the authenticate method to enhance security.
- Updated the login modal in home.html.twig to redirect to the admin panel instead of opening a modal.
- Enhanced the Altcha widget with localized strings for better user experience.
- Removed the login modal implementation from home.html.twig to streamline the login process.
- Updated manifest.json and AST cache files to reflect changes in the codebase.
2026-07-10 11:05:59 +03:30

1 line
20 KiB
JSON

{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "label": "PasswordAuthenticator.php", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L1"}, {"id": "security_passwordauthenticator_passwordauthenticator", "label": "PasswordAuthenticator", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L23"}, {"id": "abstractauthenticator", "label": "AbstractAuthenticator", "file_type": "code", "source_file": "", "source_location": ""}, {"id": "security_passwordauthenticator_passwordauthenticator_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L25"}, {"id": "security_passwordauthenticator_passwordauthenticator_supports", "label": ".supports()", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L35"}, {"id": "request", "label": "Request", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L35"}, {"id": "security_passwordauthenticator_passwordauthenticator_authenticate", "label": ".authenticate()", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L41"}, {"id": "passport", "label": "Passport", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L41"}, {"id": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "label": ".onAuthenticationSuccess()", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61"}, {"id": "tokeninterface", "label": "TokenInterface", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61"}, {"id": "response", "label": "Response", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61"}, {"id": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "label": ".onAuthenticationFailure()", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L97"}, {"id": "authenticationexception", "label": "AuthenticationException", "file_type": "code", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L97"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "userrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "captchaguard", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "errorcodes", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "jwttokenmanagerinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "loggerinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L9", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "jsonresponse", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L10", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "request", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L11", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "response", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L12", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "toomanyrequestshttpexception", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L13", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "ratelimiterfactory", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L14", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "tokeninterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L15", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "authenticationexception", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L16", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "abstractauthenticator", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L17", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "userbadge", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L18", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "passwordcredentials", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L19", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "passport", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L20", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "cacheinterface", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L21", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_auth_security_passwordauthenticator_php", "target": "security_passwordauthenticator_passwordauthenticator", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L23", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator", "target": "abstractauthenticator", "relation": "inherits", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L23", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator", "target": "security_passwordauthenticator_passwordauthenticator_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L25", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator", "target": "security_passwordauthenticator_passwordauthenticator_supports", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L35", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator_supports", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L35", "weight": 1.0, "context": "parameter_type"}, {"source": "security_passwordauthenticator_passwordauthenticator", "target": "security_passwordauthenticator_passwordauthenticator_authenticate", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L41", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator_authenticate", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L41", "weight": 1.0, "context": "parameter_type"}, {"source": "security_passwordauthenticator_passwordauthenticator_authenticate", "target": "passport", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L41", "weight": 1.0, "context": "return_type"}, {"source": "security_passwordauthenticator_passwordauthenticator", "target": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61", "weight": 1.0, "context": "parameter_type"}, {"source": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "target": "tokeninterface", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61", "weight": 1.0, "context": "parameter_type"}, {"source": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "target": "response", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L61", "weight": 1.0, "context": "return_type"}, {"source": "security_passwordauthenticator_passwordauthenticator", "target": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L97", "weight": 1.0}, {"source": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L97", "weight": 1.0, "context": "parameter_type"}, {"source": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "target": "authenticationexception", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L97", "weight": 1.0, "context": "parameter_type"}, {"source": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "target": "response", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Auth/Security/PasswordAuthenticator.php", "source_location": "L97", "weight": 1.0, "context": "return_type"}], "raw_calls": [{"caller_nid": "security_passwordauthenticator_passwordauthenticator_supports", "callee": "getPathInfo", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L37", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_supports", "callee": "isMethod", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L38", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "create", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L43", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "getClientIp", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L43", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "isAccepted", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L44", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "consume", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L44", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "assertValid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L49", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "json_decode", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L51", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "getContent", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L51", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "trim", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L52", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_authenticate", "callee": "findByMobile", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L56", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "getUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L63", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "isStaff", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L65", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "ErrorCodes", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L69", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "create", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L73", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "bin2hex", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L74", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "random_bytes", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L74", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "getItem", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L77", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L78", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "expiresAfter", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L79", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "save", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L80", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "info", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L82", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L83", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationsuccess", "callee": "getClientIp", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L84", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "callee": "warning", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L99", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "callee": "getClientIp", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L100", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "callee": "getMessage", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L101", "receiver": null}, {"caller_nid": "security_passwordauthenticator_passwordauthenticator_onauthenticationfailure", "callee": "ErrorCodes", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Auth/Security/PasswordAuthenticator.php", "source_location": "L107", "receiver": null}]}