RVRNEXT-36 add autocomplete values for username and password fields #46
@ -9,12 +9,12 @@
 | 
				
			|||||||
            <?php if ($user['password'] !== null && $user['google_sub'] !== null): ?>
 | 
					            <?php if ($user['password'] !== null && $user['google_sub'] !== null): ?>
 | 
				
			||||||
                <p class="justify small">Please confirm your identity with your password or with Google to modify your account.</p>
 | 
					                <p class="justify small">Please confirm your identity with your password or with Google to modify your account.</p>
 | 
				
			||||||
                <div class="inputWithButton">
 | 
					                <div class="inputWithButton">
 | 
				
			||||||
                    <input type="password" class="text" name="password" placeholder="Current password" required minlength="6" autofocus><!--
 | 
					                    <input type="password" class="text" name="password" placeholder="Current password" autocomplete="current-password" required minlength="6" autofocus><!--
 | 
				
			||||||
                 --><button id="authenticateWithGoogleButton" class="yellow" type="button">Google</button>
 | 
					                 --><button id="authenticateWithGoogleButton" class="yellow" type="button">Google</button>
 | 
				
			||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            <?php elseif ($user['password'] !== null): ?>
 | 
					            <?php elseif ($user['password'] !== null): ?>
 | 
				
			||||||
                <p class="justify small">Please confirm your identity with your password to modify your account.</p>
 | 
					                <p class="justify small">Please confirm your identity with your password to modify your account.</p>
 | 
				
			||||||
                <input type="password" class="text big fullWidth" name="password" placeholder="Current password" required minlength="6" autofocus>
 | 
					                <input type="password" class="text big fullWidth" name="password" placeholder="Current password" autocomplete="current-password" required minlength="6" autofocus>
 | 
				
			||||||
            <?php elseif ($user['google_sub'] !== null): ?>
 | 
					            <?php elseif ($user['google_sub'] !== null): ?>
 | 
				
			||||||
                <p class="justify small">Please confirm your identity with Google to modify your account.</p>
 | 
					                <p class="justify small">Please confirm your identity with Google to modify your account.</p>
 | 
				
			||||||
                <div class="inputWithButton">
 | 
					                <div class="inputWithButton">
 | 
				
			||||||
@ -23,10 +23,10 @@
 | 
				
			|||||||
                </div>
 | 
					                </div>
 | 
				
			||||||
            <?php endif; ?>
 | 
					            <?php endif; ?>
 | 
				
			||||||
            <hr>
 | 
					            <hr>
 | 
				
			||||||
            <input type="email" class="text big fullWidth" name="email" placeholder="Email address" value="<?= $user['email'] ?>">
 | 
					            <input type="email" class="text big fullWidth" name="email" placeholder="Email address" autocomplete="username" value="<?= $user['email'] ?>">
 | 
				
			||||||
            <input type="text" class="text big fullWidth marginTop" name="username" placeholder="Username" value="<?= $user['username'] ?>">
 | 
					            <input type="text" class="text big fullWidth marginTop" name="username" placeholder="Username" value="<?= $user['username'] ?>">
 | 
				
			||||||
            <input type="password" class="text big fullWidth marginTop" name="password_new" placeholder="New password" minlength="6">
 | 
					            <input type="password" class="text big fullWidth marginTop" name="password_new" placeholder="New password" autocomplete="new-password" minlength="6">
 | 
				
			||||||
            <input type="password" class="text big fullWidth marginTop" name="password_new_confirm" placeholder="New password confirmation" minlength="6">
 | 
					            <input type="password" class="text big fullWidth marginTop" name="password_new_confirm" placeholder="New password confirmation" autocomplete="new-password" minlength="6">
 | 
				
			||||||
            <hr>
 | 
					            <hr>
 | 
				
			||||||
            <input type="text" class="text big fullWidth marginTop" name="full_name" placeholder="Full name" value="<?= $user['full_name'] ?>" disabled>
 | 
					            <input type="text" class="text big fullWidth marginTop" name="full_name" placeholder="Full name" value="<?= $user['full_name'] ?>" disabled>
 | 
				
			||||||
            <input type="text" class="text big fullWidth marginTop" name="nickname" placeholder="Nickname" value="<?= $user['nickname'] ?>">
 | 
					            <input type="text" class="text big fullWidth marginTop" name="nickname" placeholder="Nickname" value="<?= $user['nickname'] ?>">
 | 
				
			||||||
 | 
				
			|||||||
@ -4,8 +4,8 @@
 | 
				
			|||||||
    <h2>Login</h2>
 | 
					    <h2>Login</h2>
 | 
				
			||||||
    <div class="box compactBox">
 | 
					    <div class="box compactBox">
 | 
				
			||||||
        <form id="loginForm" action="<?= Container::$routeCollection->getRoute('login-action')->generateLink() ?>" method="post" data-redirect-on-success="<?= $redirectUrl ?>">
 | 
					        <form id="loginForm" action="<?= Container::$routeCollection->getRoute('login-action')->generateLink() ?>" method="post" data-redirect-on-success="<?= $redirectUrl ?>">
 | 
				
			||||||
            <input type="text" class="text big fullWidth" name="email" placeholder="Email address / Username" required autofocus>
 | 
					            <input type="text" class="text big fullWidth" name="email" placeholder="Email address / Username" autocomplete="username" required autofocus>
 | 
				
			||||||
            <input type="password"  class="text big fullWidth marginTop" name="password" placeholder="Password" required minlength="6">
 | 
					            <input type="password" class="text big fullWidth marginTop" name="password" placeholder="Password" autocomplete="current-password" required minlength="6">
 | 
				
			||||||
            <p id="loginFormError" class="formError justify marginTop"></p>
 | 
					            <p id="loginFormError" class="formError justify marginTop"></p>
 | 
				
			||||||
            <div class="right marginTop">
 | 
					            <div class="right marginTop">
 | 
				
			||||||
                <button type="submit">Login</button>
 | 
					                <button type="submit">Login</button>
 | 
				
			||||||
 | 
				
			|||||||
@ -5,9 +5,9 @@
 | 
				
			|||||||
    <div class="box compactBox">
 | 
					    <div class="box compactBox">
 | 
				
			||||||
        <?php if ($success) : ?>
 | 
					        <?php if ($success) : ?>
 | 
				
			||||||
            <form id="resetPasswordForm" action="<?= Container::$routeCollection->getRoute('password.reset-action')->generateLink(['token' => $token]) ?>"" method="post" data-redirect-on-success="<?= $redirectUrl ?>">
 | 
					            <form id="resetPasswordForm" action="<?= Container::$routeCollection->getRoute('password.reset-action')->generateLink(['token' => $token]) ?>"" method="post" data-redirect-on-success="<?= $redirectUrl ?>">
 | 
				
			||||||
                <input type="email" class="text big fullWidth" name="email" placeholder="Email address" value="<?= $email ?>" disabled>
 | 
					                <input type="text" class="text big fullWidth" name="email" placeholder="Email address / Username" autocomplete="username" value="<?= $email ?>" disabled>
 | 
				
			||||||
                <input type="password" class="text big fullWidth marginTop" name="password" placeholder="Password" required minlength="6" autofocus>
 | 
					                <input type="password" class="text big fullWidth marginTop" name="password" placeholder="Password" autocomplete="new-password" required minlength="6" autofocus>
 | 
				
			||||||
                <input type="password" class="text big fullWidth marginTop" name="password_confirm" placeholder="Password confirmation" required minlength="6">
 | 
					                <input type="password" class="text big fullWidth marginTop" name="password_confirm" placeholder="Password confirmation" autocomplete="new-password" required minlength="6">
 | 
				
			||||||
                <p id="resetPasswordFormError" class="formError justify marginTop"></p>
 | 
					                <p id="resetPasswordFormError" class="formError justify marginTop"></p>
 | 
				
			||||||
                <div class="right">
 | 
					                <div class="right">
 | 
				
			||||||
                    <button class="marginTop" type="submit">Reset password</button>
 | 
					                    <button class="marginTop" type="submit">Reset password</button>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user