Sha256: a5fb0993b7e09901a3a091e7eb8d92a9725f2161dee44d93f5285fb691a7ede6

Contents?: true

Size: 695 Bytes

Versions: 5

Compression:

Stored size: 695 Bytes

Contents

module SmsLib

  def sms_new_bee(user, password)
    message = "пароль на #{CONFIG[:domain]} #{password}"
    send_sms user.phone, message
  end

  def sms_password_reset(user, new_password)
    message = "новый пароль на #{CONFIG[:domain]} #{new_password}"
    send_sms user.phone, message
  end

  def sms_phone_verify_code(phone, code)
    message = "skillhunt код подтверждения - #{code}"
    send_sms phone, message

    session[:sms_lock] = Time.now + 59.seconds
  end

  private

  def send_sms(recepient_10dgt, message)
    require 'russland_sms'

    message.to_s.sms recepient_10dgt

    # p "message #{message} send2 #{recepient_10dgt}"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
digital_heroes_startkit-0.1.1.4 lib/sms_lib.rb
digital_heroes_startkit-0.1.1.3 lib/sms_lib.rb
digital_heroes_startkit-0.1.1.2 lib/sms_lib.rb
digital_heroes_startkit-0.1.1.1 lib/sms_lib.rb
digital_heroes_startkit-0.1.1 lib/sms_lib.rb