summaryrefslogtreecommitdiff
path: root/lib/srp/user.rb
blob: 1330de7a08c8db475003b91141a379d819e6748a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# SRP User on the server.
#
# This will be used in the session instead of the real user record so the
# session does not get cluttered with the whole user record.
#
module SRP
  class User

    attr_reader :username, :salt, :verifier

    def initialize(user)
      @username = user.username
      @salt = user.salt
      @verifier = user.verifier
    end

  end
end