update login

This commit is contained in:
Luke Pulverenti 2016-05-28 15:47:56 -04:00
parent 778d3e8683
commit 9abecac88b
4 changed files with 28 additions and 28 deletions

View File

@ -1,20 +1,18 @@
<div id="connectLoginPage" data-role="page" class="page standalonePage connectLoginPage" data-theme="b" data-require="scripts/connectlogin,paper-input,paper-button"> <div id="connectLoginPage" data-role="page" class="page standalonePage connectLoginPage" data-theme="b" data-require="scripts/connectlogin,emby-input,paper-button">
<div data-role="content"> <div data-role="content">
<form class="connectLoginForm" style="margin: 0 auto;display:none;"> <form class="connectLoginForm" style="margin: 0 auto;display:none;">
<div style="display: none;"> <div style="height:0; overflow: hidden;"><input type="text" name="fakeusernameremembered" tabindex="-1" /><input type="password" name="fakepasswordremembered" tabindex="-1" /></div>
<input type="text" id="PreventChromeAutocomplete" name="PreventChromeAutocomplete" autocomplete="address-level4" />
</div>
<h1 style="text-align: left;">${HeaderSignInWithConnect}</h1> <h1 style="text-align: left;">${HeaderSignInWithConnect}</h1>
<div> <div class="inputContainer">
<paper-input type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"></paper-input> <input is="emby-input" type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"/>
<div class="fieldDescription" style="text-align:left;">${LabelEnterConnectUserNameHelp}</div> <div class="fieldDescription" style="text-align:left;">${LabelEnterConnectUserNameHelp}</div>
</div> </div>
<div> <div class="inputContainer">
<paper-input type="password" id="txtManualPassword" required="required" label="${LabelPassword}" autocomplete="off"></paper-input> <input is="emby-input" type="password" id="txtManualPassword" required="required" label="${LabelPassword}" autocomplete="off"/>
</div> </div>
<br /> <br />
<button type="submit" data-role="none" class="clearButton"> <button type="submit" data-role="none" class="clearButton">
@ -47,13 +45,13 @@
</div> </div>
<h1 style="text-align: left;">${HeaderConnectToServer}</h1> <h1 style="text-align: left;">${HeaderConnectToServer}</h1>
<div> <div class="inputContainer">
<paper-input type="text" id="txtServerHost" required="required" label="${LabelServerHost}"></paper-input> <input is="emby-input" type="text" id="txtServerHost" required="required" label="${LabelServerHost}"/>
<div class="fieldDescription" style="text-align:left;">${LabelServerHostHelp}</div> <div class="fieldDescription" style="text-align:left;">${LabelServerHostHelp}</div>
</div> </div>
<br /> <br />
<div> <div class="inputContainer">
<paper-input type="number" id="txtServerPort" step="1" min="0" value="8096" label="${LabelServerPort}"></paper-input> <input is="emby-input" type="number" id="txtServerPort" step="1" min="0" value="8096" label="${LabelServerPort}"/>
</div> </div>
<br /> <br />
@ -71,17 +69,17 @@
<h1 style="text-align: left;">${HeaderSignUp}</h1> <h1 style="text-align: left;">${HeaderSignUp}</h1>
<br /> <br />
<div> <div class="inputContainer">
<paper-input type="text" id="txtSignupEmail" required="required" label="${LabelEmail}"></paper-input> <input is="emby-input" type="text" id="txtSignupEmail" required="required" label="${LabelEmail}"/>
</div> </div>
<div> <div class="inputContainer">
<paper-input type="text" id="txtSignupUsername" required="required" label="${LabelUsername}"></paper-input> <input is="emby-input" type="text" id="txtSignupUsername" required="required" label="${LabelUsername}"/>
</div> </div>
<div> <div class="inputContainer">
<paper-input type="password" id="txtSignupPassword" required="required" label="${LabelPassword}" autocomplete="off"></paper-input> <input is="emby-input" type="password" id="txtSignupPassword" required="required" label="${LabelPassword}" autocomplete="off"/>
</div> </div>
<div> <div class="inputContainer">
<paper-input type="password" id="txtSignupPasswordConfirm" required="required" label="${LabelPasswordConfirm}" autocomplete="off"></paper-input> <input is="emby-input" type="password" id="txtSignupPasswordConfirm" required="required" label="${LabelPasswordConfirm}" autocomplete="off"/>
</div> </div>
<div class="g-recaptcha" id="recaptchaWidget" data-sitekey="6Le2LAgTAAAAAK06Wvttt_yUnbISTy6q3Azqp9po" data-theme="dark"></div> <div class="g-recaptcha" id="recaptchaWidget" data-sitekey="6Le2LAgTAAAAAK06Wvttt_yUnbISTy6q3Azqp9po" data-theme="dark"></div>

View File

@ -6,13 +6,15 @@
<h1 style="text-align: left;">${HeaderPleaseSignIn}</h1> <h1 style="text-align: left;">${HeaderPleaseSignIn}</h1>
<div style="display: none;"> <div style="height:0; overflow: hidden;"><input type="text" name="fakeusernameremembered" tabindex="-1" /><input type="password" name="fakepasswordremembered" tabindex="-1" /></div>
<input type="text" id="PreventChromeAutocomplete" name="PreventChromeAutocomplete" autocomplete="address-level4" />
<div class="inputContainer">
<input is="emby-input" type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"/>
</div> </div>
<paper-input type="text" id="txtManualName" required="required" label="${LabelUser}" autocomplete="off"></paper-input> <div class="inputContainer">
<input is="emby-input" id="txtManualPassword" type="password" label="${LabelPassword}" autocomplete="off"/>
<paper-input id="txtManualPassword" type="password" label="${LabelPassword}" autocomplete="off"></paper-input> </div>
<br /> <br />
<button type="submit" data-role="none" class="clearButton"> <button type="submit" data-role="none" class="clearButton">

View File

@ -86,9 +86,9 @@
$('.manualLoginForm', context).show(); $('.manualLoginForm', context).show();
if (focusPassword) { if (focusPassword) {
$('#txtManualPassword input', context).focus(); $('#txtManualPassword', context).focus();
} else { } else {
$('#txtManualName input', context).focus(); $('#txtManualName', context).focus();
} }
if (showCancel) { if (showCancel) {

View File

@ -2667,7 +2667,7 @@ var AppInfo = {};
defineRoute({ defineRoute({
path: '/login.html', path: '/login.html',
dependencies: ['paper-button', 'humanedate', 'paper-input'], dependencies: ['paper-button', 'humanedate', 'emby-input'],
autoFocus: false, autoFocus: false,
anonymous: true, anonymous: true,
controller: 'scripts/loginpage' controller: 'scripts/loginpage'