Commit 022b9ee
committed
Refactor Google callback handling in SocialAuthController to improve error messaging and user experience
This commit updates the handleGoogleCallback method to store the Google user's email in a variable for better readability. It also adds an error message redirect for users whose email is not found in the database, prompting them to register first. This enhances the overall user experience during the authentication process.1 parent e048538 commit 022b9ee
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
0 commit comments