From 6c07875d04792bd8cc3947fed268c8709f79668f Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 10 May 2013 15:23:28 +0200 Subject: Reset Password via emailed link (front end only) --- widgets.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'widgets.js') diff --git a/widgets.js b/widgets.js index b95dfe6..4f242cf 100644 --- a/widgets.js +++ b/widgets.js @@ -73,7 +73,7 @@ newCanvas, StringMorph, Morph, TextMorph, nop, detect, StringFieldMorph, HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph, ArrowMorph, MenuMorph, isString, isNil, SliderMorph*/ -modules.widgets = '2013-May-06'; +modules.widgets = '2013-May-10'; var PushButtonMorph; var ToggleButtonMorph; @@ -1827,9 +1827,6 @@ DialogBoxMorph.prototype.promptCredentials = function ( if (purpose === 'resetPassword') { inp.add(labelText('User name:')); inp.add(usr); - emlLabel = labelText('E-mail address:'); - inp.add(emlLabel); - inp.add(eml); } if (msg) { @@ -1922,7 +1919,7 @@ DialogBoxMorph.prototype.promptCredentials = function ( } else if (purpose === 'changePassword') { checklist = [opw, pw1, pw2]; } else if (purpose === 'resetPassword') { - checklist = [usr, eml]; + checklist = [usr]; } empty = detect( @@ -1956,13 +1953,6 @@ DialogBoxMorph.prototype.promptCredentials = function ( return false; } } - if (purpose === 'resetPassword') { - if (em.indexOf(' ') > -1 || em.indexOf('@') === -1 - || em.indexOf('.') === -1) { - indicate(eml, 'please provide a valid\nemail address'); - return false; - } - } if (purpose === 'signup') { if (!agree) { indicate(chk, 'please agree to\nthe TOS'); -- cgit v1.3.1