• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

foodcoops / foodsoft / 21521827700

30 Jan 2026 03:53PM UTC coverage: 42.78% (-24.3%) from 67.127%
21521827700

Pull #1269

github

lentschi
Remove GitHub deploy workflow
Pull Request #1269: Remove GitHub deploy workflow

3087 of 7216 relevant lines covered (42.78%)

11.86 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.0
/app/controllers/sessions_controller.rb
1
class SessionsController < ApplicationController
1✔
2
  skip_before_action :authenticate
1✔
3
  layout 'login'
1✔
4

5
  def new
1✔
6
    respond_to do |format|
2✔
7
      format.html
2✔
8
    end
9
  end
10

11
  def create
1✔
12
    user = User.authenticate(params[:nick], params[:password])
2✔
13
    if user
2✔
14
      user.update_attribute(:last_login, Time.now)
2✔
15
      login_and_redirect_to_return_to user, notice: I18n.t('sessions.logged_in')
2✔
16
    else
17
      flash.now.alert = I18n.t(FoodsoftConfig[:use_nick] ? 'sessions.login_invalid_nick' : 'sessions.login_invalid_email')
×
18
      render 'new'
×
19
    end
20
  end
21

22
  def destroy
1✔
23
    logout
×
24
    if FoodsoftConfig[:logout_redirect_url].present?
×
25
      redirect_to FoodsoftConfig[:logout_redirect_url], allow_other_host: true
×
26
    else
27
      redirect_to login_url, notice: I18n.t('sessions.logged_out')
×
28
    end
29
  end
30

31
  # redirect to root, going to default foodcoop when none given
32
  # this may not be so much session-related, but it must be somewhere
33
  def redirect_to_foodcoop
1✔
34
    redirect_to root_path
×
35
  end
36
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc