__section__
default
__description__
Change password form

* useredit = hashref of user info
* author_flag = user is author
* title = passed to titlebar
* session = popup for session login
* got_old_pass = set to 1 if you've already been passed the old password correctly 


__title__

__page__
users
__lang__
en_US
__name__
changePasswd
__template__

	[% PROCESS prefs_titlebar tab_selected='password' %]
	<div class="generalbody">
		[% admin_block %]
		[% IF constants.offer_insecure_login_link %]
			<div class="message">
				You can automatically log in by clicking <a href="[% gSkin.rootdir %]/index.pl?op=userlogin&amp;logtoken=[% useredit.logtoken | strip_paramattr %]">This Link</a> and Bookmarking the resulting page.  This is totally insecure, but very convenient.
			</div>
		[% END %]
		<form action="[% env.script_name %]" method="post">
			[% PROCESS formkey_tag %]
			[% IF admin_flag %]
				<b>User ID</b> (if admin user) <input type="text" name="uid" value="[% useredit.uid %]"><br>
			[% ELSE %]
				<input type="hidden" name="uid" value="[% useredit.uid %]">
			[% END %]
			My <a href="[% gSkin.rootdir %]/faq/accounts.shtml#ac1200">login session</a> [% session %] and [% clocation %]
			[% PROCESS formNote note="Currently, to change your login cookie preferences, you must change your password.  This will be fixed in the near future.  You can change your password to whatever your current password is, if you like, so it won't actually change." %]
			[% PROCESS formNote note="Changing your password or login cookie preferences will disable all cookies for this account, requiring all browsers to reauthenticate." %]
			</p>
			[% IF !admin_flag %]
				[% IF got_oldpass %]
					<input type="hidden" name="oldpass" value="[% form.oldpass | strip_attribute %]">	
				[% ELSE %]
					<label>
						Enter your <b>current</b> password
					</label>
					<input type="password" name="oldpass" size="20" maxlength="20" value="">
				[% END %]
			[% END %]
			<label>
				Password
			</label>
			<div class="note">
				Enter a new password twice to change it.
			</div>
			<input type="password" name="pass1" size="20" maxlength="20">
			<input type="password" name="pass2" size="20" maxlength="20">
			<div class="note">
				Must be 6-20 chars long.
			</div>
			<br>
			<input type="hidden" name="op" value="savepasswd">
			<input type="submit" value="Change Password" class="button">
		</form>
	</div>

__seclev__
500
__version__
$Id: changePasswd;users;default,v 1.25 2006/01/23 20:42:59 pudge Exp $
