Commit graph

20 commits

Author SHA1 Message Date
Philipp Rothmann
fb2b4d8a8a chore: rubocop
chore: fix api test conventions

chore: rubocop -A spec/

chore: more rubocop -A

fix failing test

rubocop fixes

removes helper methods that are in my opinion dead code

more rubocop fixes

rubocop -a --auto-gen-config
2023-06-09 17:35:05 +02:00
kidhab
c01c16ecdb
Specify an URL to redirect after logout via settings (#989) 2023-03-30 10:05:47 +02:00
Patrick Gansterer
ea2862fdef Run rubocop --fix-layout and remove encoding comments 2021-03-02 09:12:19 +01:00
Patrick Gansterer
2100c738af Change deprecated *_filter methods to *_action 2019-10-29 09:41:01 +01:00
Patrick Gansterer
8c6d48da86 Avoid ActionView::MissingTemplate occurred in sessions#new
Some browser request /:foodcoop/login with the HTTP-Accept-Header set
to "image/webp,image/*;q=0.8", which leads to an internal server error
due to a not existing template. Call respond_to to allow only html and
respond with the correct "406 Not Acceptable" HTTP status code.
2019-01-15 04:18:47 +01:00
Patrick Gansterer
0edc780ec7 Add Discourse plugin 2017-09-22 13:58:00 +02:00
Patrick Gansterer
700eed27b8 Add last user login and activity 2015-03-03 14:55:30 +01:00
wvengen
7826d2f674 move login and logout to separate methods
Conflicts:
	app/controllers/sessions_controller.rb

Conflicts:
	app/controllers/application_controller.rb
	app/controllers/sessions_controller.rb
2014-10-18 17:57:07 +02:00
wvengen
9a7b3378c3 Make invalid login message depend on use_nick (closes foodcoops#321) 2014-10-09 09:42:13 +02:00
wvengen
151f851799 do not require authentication for root redirect 2014-01-15 16:33:13 +01:00
Robert Waltemath
a0f55ba812 Clear return_to URL in session when signing out. 2014-01-03 19:42:08 +01:00
Manuel Wiedenmann
dfe1cee4cd german i18n + mini fix 2013-07-18 16:23:29 +02:00
Manuel Wiedenmann
0401572580 Merge pull request #1 from foodcoop-adam/extended-i18n
cleanup of profile layout + set session on login
2013-07-18 07:19:20 -07:00
Manuel Wiedenmann
206709aa61 sets session[:locale] = user.locale after login 2013-07-18 16:09:32 +02:00
wvengen
0978b84f4d set user language on login to override session 2013-06-28 13:30:26 +02:00
wvengen
c5de69bfc5 typo 2013-02-05 12:30:44 +01:00
wvengen
1860e1c4cc also internationalize sessions controller 2013-02-04 02:00:27 +01:00
benni
0364562273 Fixed return_to when authorization gets lost. 2012-12-30 16:34:01 +01:00
benni
ec2e761e7f Fixed multi coop routing and changed config accessors. 2012-08-24 19:52:38 +02:00
benni
e40f865c45 Refactored login module. Implemented standard sessions controller. 2011-05-11 13:38:46 +02:00