Skip to content

Commit

Permalink
Item10177: prevent breaking the login form when an email address is u…
Browse files Browse the repository at this point in the history
…sed as login name

git-svn-id: http://svn.foswiki.org/trunk@10355 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Dec 18, 2010
1 parent 9a36f2c commit 93c74b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/templates/login.sudo.tmpl
Expand Up @@ -7,7 +7,7 @@
%TMPL:DEF{"title"}%---++ %MAKETEXT{"Please enter the Wiki admin password"}%
%TMPL:END%

%TMPL:DEF{"usernamefield"}%<input tabindex='1' class="foswikiInputField foswikiFocus" type="text" size="40" name="username" value="%WIKIADMINLOGIN%" %TMPL:P{context="no_auto_complete_login" then="autocomplete_off"}% />%TMPL:END%
%TMPL:DEF{"usernamefield"}%<input tabindex='1' class="foswikiInputField foswikiFocus" type="text" size="40" name="username" value="<nop>%WIKIADMINLOGIN%" %TMPL:P{context="no_auto_complete_login" then="autocomplete_off"}% />%TMPL:END%

%TMPL:DEF{"usernamenote"}%%TMPL:P{"authrealm"}%%TMPL:END%

Expand Down
2 changes: 1 addition & 1 deletion core/templates/login.tmpl
Expand Up @@ -34,7 +34,7 @@
</literal><input type="hidden" name="foswiki_origin" value="%FOSWIKI_ORIGIN%" />
</form>%TMPL:END%

%TMPL:DEF{"usernamefield"}%<input tabindex='1' type='text' class='foswikiInputField foswikiFocus' size='40' name='username' value='%URLPARAM{"usernamestep"}%' %TMPL:P{context="no_auto_complete_login" then="autocomplete_off"}% />%TMPL:END%
%TMPL:DEF{"usernamefield"}%<input tabindex='1' type='text' class='foswikiInputField foswikiFocus' size='40' name='username' value='<nop>%URLPARAM{"usernamestep"}%' %TMPL:P{context="no_auto_complete_login" then="autocomplete_off"}% />%TMPL:END%

%TMPL:DEF{"usernamestep"}%<div class="foswikiFormStep">
<h3>%MAKETEXT{"Username"}%</h3>
Expand Down

0 comments on commit 93c74b3

Please sign in to comment.