comparison mod_invite/mod_invite.lua @ 2616:c814c667d4d1

mod_invite: Split long line [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 14 Mar 2017 04:20:02 +0100
parents efb69a260723
children 5911030a1a66
comparison
equal deleted inserted replaced
2615:efb69a260723 2616:c814c667d4d1
107 107
108 tokens[token] = nil; 108 tokens[token] = nil;
109 109
110 invite_storage:set(nil, tokens); 110 invite_storage:set(nil, tokens);
111 111
112 return apply_template(template, { classes = "alert-success", message = "Your account has been created! You can now log in using an XMPP client." }) 112 return apply_template(template, { classes = "alert-success",
113 message = "Your account has been created! You can now log in using an XMPP client." })
113 else 114 else
114 module:log("debug", "Registration failed: " .. tostring(err)); 115 module:log("debug", "Registration failed: " .. tostring(err));
115 116
116 return apply_template(template, { classes = "alert-danger", message = "An unknown error has occurred." }) 117 return apply_template(template, { classes = "alert-danger", message = "An unknown error has occurred." })
117 end 118 end