# frozen_string_literal: true

module Forms
  class SignInForm < Forms::ApplicationForm
    attr_accessor :back
    attr_reader :email

    validates :back, format: {with: %r{\A/}, allow_blank: true}
    validates :email, presence: true, email: true

    def email=(email)
      @email = email&.strip
    end
  end
end
