From 35ddf7a81c9588ade771fe3d52fe6a372ed77ea3 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Tue, 16 Oct 2012 18:49:13 +0100 Subject: [PATCH] Update the password macro so that it can be used on the server --- core/modules/macros/password.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/modules/macros/password.js b/core/modules/macros/password.js index 82c37287c..63e79545f 100644 --- a/core/modules/macros/password.js +++ b/core/modules/macros/password.js @@ -20,8 +20,7 @@ exports.info = { }; exports.executeMacro = function() { - var password = $tw.utils.getPassword(this.params.name); - password = password || ""; + var password = $tw.browser ? $tw.utils.getPassword(this.params.name) : ""; var attributes = { type: "password", value: password