Changeset 7451


Ignore:
Timestamp:
Feb 28, 2018, 3:43:30 PM (4 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2097: Implement support for device verification

Some minor changes in the email message and in the text in the browser. Seems to work ok.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/SessionControl.java

    r7418 r7451  
    520520          + "If you did not try to login at this time, your login information might be stolen.\n"
    521521          + "Please contact the server administrator if you have any questions.\n\n"
    522           + "The login attempt was made from: " + getRemoteId() + "\n";
     522          + "The login attempt was made from: " + getRemoteId() + "\n"
     523          + "With browser: " + device.getName();
    523524       
    524525        Email email = EmailUtil.createSimpleEmail();
     
    804805    UnverifiedLoginInfo instance is created and returned.
    805806   
    806     @return An {@link UnverifiedLoginInfo} object if device verification is
     807    @return An {@link UserDeviceData} object if device verification is
    807808      supported and needed, null to continue with normal login
    808809    @since 3.12
  • trunk/www/verify_device.jsp

    r7409 r7451  
    5858      <div class="messagecontainer help" id="login-help" style="text-align: center; padding: 1em;">
    5959        <b style="font-size: 125%;">This is the first time you are logging in from this device</b>
    60         <p style="margin-top: 1em; line-height: 170%;">
    61         A verification code has been sent to your registered email address: <br>
    62         <b><%=HTML.encodeTags(ui.getUserName())%> &lt;<%=HTML.encodeTags(ui.getUserEmail())%>&gt;</b><br>
    63         Please enter the verification code in the form below to complete the login.
     60        <div style="margin-top: 1em;">
     61          A verification code has been sent to your registered email address:
     62          <div style="margin: 0.5em; font-weight: bold;">
     63            <%=HTML.encodeTags(ui.getUserName())%> &lt;<%=HTML.encodeTags(ui.getUserEmail())%>&gt;
     64          </div>
     65          Please enter the verification code in the form below to complete the login.<br>
     66          The code can only be used once.
     67        </div>
    6468      </div>
    6569     
Note: See TracChangeset for help on using the changeset viewer.