summaryrefslogtreecommitdiff
path: root/lib/errors.js (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-03-21Fix broken redirect on loginSheogorath1-2/+4
This patch fixes the currently broken redirect on login when people try to access a site they have no access to, they are redirected to the main page to log in. After a successful login they should be redirected to the original note, but instead are redirect to the index page again. This aptch fixes the typo that causes the behavior and brings people back to the note they edited. Thanks to @clvs7-gh on Github[1], who submitted the patch via email. On their behalf I hereby submit the change. [1]: https://github.com/clvs7-gh Note: I had to ajust this patch to work properly. Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2019-11-28Making the linter happy by removing superfluous ;Ralph Krimmel1-1/+1
Signed-off-by: Ralph Krimmel <rkrimme1@gwdg.de>
2019-11-28Making the linter happy by removing superfluous ;Ralph Krimmel1-1/+1
2019-11-28Moving the storage of referrer information to main authorization check ↵Ralph Krimmel1-0/+2
instead of doing it in the authentication source Signed-off-by: Ralph Krimmel <rkrimme1@gwdg.de>
2019-10-27Move note actions to their own file.David Mehren1-0/+38
Because of circular import problems, this commit also moves the error messages from response.js to errors.js Signed-off-by: David Mehren <dmehren1@gmail.com>