Skip to content

Commit

Permalink
Removed extra variables
Browse files Browse the repository at this point in the history
  • Loading branch information
roshnaeem committed Apr 20, 2021
1 parent 80641e7 commit e996fee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cgi/user2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@
}

$template_data_ref->{user_ref} = $user_ref;
$template_data_ref->{user_id_field} = $user_ref->{userid};
$template_data_ref->{user_password_field} = $user_ref->{password};

# Create the list of sections and fields

Expand Down
4 changes: 2 additions & 2 deletions templates/user_form2.tt.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
[% IF field.field == 'userid' %]
[% IF type == 'edit' %]
<label for="[% field.field %]"> [% lang(field.label) %]</label>
<p> [% user_id_field %] </p>
<p> [% field.value %] </p>
[% ELSE %]
<label for="[% field.field %]"> [% lang(field.label) %] [% lang('username_info') %]</label>
<input type="text" id="[% field.field %]" name="[% field.field %]" value="[% field.value %]" autocomplete="[% field.field %]" onkeyup="normalize_string_value(this)" />
Expand All @@ -73,7 +73,7 @@
</div>
[% ELSIF field.type == 'password' %]
<label for="[% field.field %]">[% lang(field.label) %]</label>
<input type="password" id="[% field.field %]" name="[% field.field %]" value="[% user_password_field %]" autocomplete="new-password"/>
<input type="password" id="[% field.field %]" name="[% field.field %]" value="[% field.value %]" autocomplete="new-password"/>
[% ELSIF field.type == 'email' %]
<label for="[% field.field %]"> [% field.label %]</label>
<input type="email" id="[% field.field %]" name="[% field.field %]" value = "[% field.value %]" autocomplete="[% field.field %]"/>
Expand Down

0 comments on commit e996fee

Please sign in to comment.