liquid_feedback_frontend

diff app/main/index/_action/reset_password.lua @ 326:75ce92899049

Work on "config/example.lua" as complete example configuration; Removed config.absolute_base_url
author jbe
date Tue Feb 28 17:59:42 2012 +0100 (2012-02-28)
parents bf735d8095aa
children 77873f08d94f
line diff
     1.1 --- a/app/main/index/_action/reset_password.lua	Tue Feb 28 16:38:54 2012 +0100
     1.2 +++ b/app/main/index/_action/reset_password.lua	Tue Feb 28 17:59:42 2012 +0100
     1.3 @@ -22,9 +22,9 @@
     1.4      local content = slot.use_temporary(function()
     1.5        slot.put(_"Hello " .. member.name .. ",\n\n")
     1.6        slot.put(_"to reset your password please click on the following link:\n\n")
     1.7 -      slot.put(config.absolute_base_url .. "index/reset_password.html?secret=" .. member.password_reset_secret .. "\n\n")
     1.8 +      slot.put(request.get_absolute_baseurl() .. "index/reset_password.html?secret=" .. member.password_reset_secret .. "\n\n")
     1.9        slot.put(_"If this link is not working, please open following url in your web browser:\n\n")
    1.10 -      slot.put(config.absolute_base_url .. "index/reset_password.html\n\n")
    1.11 +      slot.put(request.get_absolute_baseurl() .. "index/reset_password.html\n\n")
    1.12        slot.put(_"On that page please enter the reset code:\n\n")
    1.13        slot.put(member.password_reset_secret .. "\n\n")
    1.14      end)
    1.15 @@ -73,4 +73,4 @@
    1.16  
    1.17    slot.put_into("notice", _"Password has been reset successfully")
    1.18  
    1.19 -end
    1.20 \ No newline at end of file
    1.21 +end

Impressum / About Us