liquid_feedback_frontend

diff model/member.lua @ 728:f49cdfb72567

Migration of extos calls from os.* to extos.* comleted
author bsw
date Thu Jun 28 16:31:02 2012 +0200 (2012-06-28)
parents c676054cb0bc
children ea2449916c12
line diff
     1.1 --- a/model/member.lua	Thu Jun 28 16:16:02 2012 +0200
     1.2 +++ b/model/member.lua	Thu Jun 28 16:31:02 2012 +0200
     1.3 @@ -270,20 +270,20 @@
     1.4  end
     1.5  
     1.6  function Member.object:set_password(password)
     1.7 -  local hash = os.crypt(
     1.8 +  local hash = extos.crypt(
     1.9      password,
    1.10      "$1$" .. multirand.string(
    1.11        8,
    1.12        "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz./"
    1.13      )
    1.14    )
    1.15 -  assert(hash, "os.crypt failed")
    1.16 +  assert(hash, "extos.crypt failed")
    1.17    self.password = hash
    1.18  end
    1.19  
    1.20  function Member.object:check_password(password)
    1.21    if type(password) == "string" and type(self.password) == "string" then
    1.22 -    return os.crypt(password, self.password) == self.password
    1.23 +    return extos.crypt(password, self.password) == self.password
    1.24    else
    1.25      return false
    1.26    end

Impressum / About Us