You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently looking to add a captcha to the login page, and I have written the following route in auth.controller.ts. However, when I test this interface, i.e., localhost:3000/captcha, it always redirects to the login page. What is controlling this redirection? A global guard? Middleware? Which file should I modify to configure this accordingly?
This discussion was converted from issue #7887 on March 18, 2024 06:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently looking to add a captcha to the login page, and I have written the following route in auth.controller.ts. However, when I test this interface, i.e., localhost:3000/captcha, it always redirects to the login page. What is controlling this redirection? A global guard? Middleware? Which file should I modify to configure this accordingly?
![image](https://private-user-images.githubusercontent.com/58558960/313568119-6fdf97a2-8fa1-47e3-a218-7711e4f8cea6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5NjE3NjYsIm5iZiI6MTcxODk2MTQ2NiwicGF0aCI6Ii81ODU1ODk2MC8zMTM1NjgxMTktNmZkZjk3YTItOGZhMS00N2UzLWEyMTgtNzcxMWU0ZjhjZWE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIxVDA5MTc0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTlhOTVhYmYzMzU4YWVhNWU3MWQ0ZGJlZjQwN2M0NDNjY2RjNjg1ZTY0NzY2N2YzNjc0ZmM2NjFmNjlkNWE2MWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.xhTaLR6lz1aenlLE8rP6hU7XC_l_9aV2QPIsnaFNs0g)
Beta Was this translation helpful? Give feedback.
All reactions