problem is solved, thank you.
PS thanks for your helping @kurulumu-Net
When my user is already logged in, and the user visits /login, it redirects to their profile page.
How can I make it redirect to root instead?
I ended up creating an oauth plugin for my app based off of this skeleton:
and instead linked it to https://forum.mysite.com/auth/myapp and it performs the intended functionality.