~ahasenack/awstrial/show-commands

Viewing all changes in revision 172.

  • Committer: Scott Moser
  • Date: 2010-10-08 14:36:35 UTC
  • Revision ID: smoser@ubuntu.com-20101008143635-ldkv4kcqbn7r2vy5
set 'set_password' in context of contacts.html rendering

Right now, the 'set_password' field being set in views.py will cause
contacts.html to set a hidden field called 'set_password' with a true
value.  That will be picked up in the POST handling, and a
random password will be assigned.

This could be done without the 'set_password' hidden input field, as the
post handling could just inspect user.has_ssh and set random password if
that was found.

The reason I chose to leave it as being a form input variable is so that
we can, in the future, offer a checkbox there, so the user could request
a password to be set even if they did have keys.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: