Class: WithAccounts::LoginInvitationsCreating::CheckParams

Inherits:
LetsDoThis::Act
  • Object
show all
Includes:
ErrorsHelpers
Defined in:
app/scenarios/with_accounts/login_invitations_creating/check_params.rb

Instance Method Summary collapse

Methods included from ErrorsHelpers

#error_key, #format_errors

Instance Method Details

#instructions(stage) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/scenarios/with_accounts/login_invitations_creating/check_params.rb', line 6

def instructions(stage)
  email = stage.params[:email].to_s
  password = stage.params[:password].to_s

  # TODO
  if 1 != 1
    errors.add(error_key, 'err')
    return NOTHING_NEW
  end

  { email: email, password: password }
end