Commit 7c49f5c
committed
Fix NameError: oauth_check not defined in render_login()
The render_login() function was referencing oauth_check without defining it,
causing a 500 Internal Server Error whenever the login page was accessed.
Added oauth_check initialization from oauth_bb.oauth_check before rendering
the login template, with fallback to empty dict when OAuth is not available.
Error message:
NameError: name 'oauth_check' is not defined. Did you mean: 'health_check'?
This bug was present regardless of OAuth configuration and would affect any
user accessing the login page.
Fixes: Discord user report of 500 error on login page1 parent 53bf2f5 commit 7c49f5c
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1952 | 1952 | | |
1953 | 1953 | | |
1954 | 1954 | | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
1955 | 1958 | | |
1956 | 1959 | | |
1957 | 1960 | | |
| |||
0 commit comments