<commit_before><%inherit file="base.mako"/>
<%def name="title()">Sign up or Log in</%def>
<%def name="content()">
<div class="page-header">
    <h1>Create an Account or Sign-In</h1>
</div>

<div class="row">
    <div class="col-md-5">
        <h2>Create Account</h2>
        <div mod-meta='{
                "tpl": "util/render_form.mako",
                "uri": "/api/v1/forms/registration/",
                "kwargs": {
                    "id": "registerForm",
                    "name": "registration",
                    "method_string": "POST",
                    "action_string": "/register/",
                    "form_class": "form-stacked",
                    "submit_string": "Create Account",
                    "field_name_prefix": "register_",
                    "submit_btn_class": "btn-success",
                    "next_url": "${next}"
                },
                "replace": true
            }'>
        </div>
    </div>
    <div class="col-md-5 col-md-offset-2">
        <h2>Sign-In</h2>
        <div mod-meta='{
                "tpl": "util/render_form.mako",
                "uri": "/api/v1/forms/signin/",
                "kwargs": {
                    "id": "signinForm",
                    "name": "signin",
                    "method_string": "POST",
                    "action_string": "/login/?next=${next}",
                    "form_class": "form-stacked",
                    "submit_string": "Sign In",
                    "submit_btn_class": "btn-primary",
                    "next_url": "${next}"
                },
                "replace": true
            }'></div>

        <hr />

        <h3>Forgot Password</h3>
        <div mod-meta='{
                "tpl": "util/render_form.mako",
                "uri": "/api/v1/forms/forgot_password/",
                "kwargs": {
                    "id": "forgotPassword",
                    "name": "forgotpassword",
                    "method_string": "POST",
                    "action_string": "/forgotpassword/",
                    "form_class": "form-stacked",
                    "submit_string": "Reset Password",
                    "submit_btn_class": "btn-default"
                },
                "replace": true
            }'></div>

    </div>
    <div class="col-md-1">&nbsp;</div>

</div>

<div class="modal fade" id="twoFactor">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 style="margin-bottom:0">Two-factor Authentication</h4>
            </div>

            <div class="modal-body">
                <p>Two-factor authentication helps keep your account security by combining a traditional password ("something you know") with a second code generated on a mobile device, usually a smartphone ("something you have").</p>
                <p>If you have enabled two-factor authentication on your account, enter the current verification code from your device in this field.</p>
            </div><!-- end modal-body -->

            <div class="modal-footer">

                <a href="#" class="btn btn-default" data-dismiss="modal">OK</a>
            </div><!-- end modal-footer -->
        </div><!-- end modal-content -->
    </div><!-- end modal-dialog -->
</div><!-- end modal -->
<script>
    $(function() {
        $('#twoFactorHelpText').wrap('<a data-toggle="modal" href="#twoFactor">');
    });
</script>
</%def>

<commit_msg>Change 2fa verbiage on login form<commit_after><%inherit file="base.mako"/>
<%def name="title()">Sign up or Log in</%def>
<%def name="content()">
<div class="page-header">
    <h1>Create an Account or Sign-In</h1>
</div>

<div class="row">
    <div class="col-md-5">
        <h2>Create Account</h2>
        <div mod-meta='{
                "tpl": "util/render_form.mako",
                "uri": "/api/v1/forms/registration/",
                "kwargs": {
                    "id": "registerForm",
                    "name": "registration",
                    "method_string": "POST",
                    "action_string": "/register/",
                    "form_class": "form-stacked",
                    "submit_string": "Create Account",
                    "field_name_prefix": "register_",
                    "submit_btn_class": "btn-success",
                    "next_url": "${next}"
                },
                "replace": true
            }'>
        </div>
    </div>
    <div class="col-md-5 col-md-offset-2">
        <h2>Sign-In</h2>
        <div mod-meta='{
                "tpl": "util/render_form.mako",
                "uri": "/api/v1/forms/signin/",
                "kwargs": {
                    "id": "signinForm",
                    "name": "signin",
                    "method_string": "POST",
                    "action_string": "/login/?next=${next}",
                    "form_class": "form-stacked",
                    "submit_string": "Sign In",
                    "submit_btn_class": "btn-primary",
                    "next_url": "${next}"
                },
                "replace": true
            }'></div>

        <hr />

        <h3>Forgot Password</h3>
        <div mod-meta='{
                "tpl": "util/render_form.mako",
                "uri": "/api/v1/forms/forgot_password/",
                "kwargs": {
                    "id": "forgotPassword",
                    "name": "forgotpassword",
                    "method_string": "POST",
                    "action_string": "/forgotpassword/",
                    "form_class": "form-stacked",
                    "submit_string": "Reset Password",
                    "submit_btn_class": "btn-default"
                },
                "replace": true
            }'></div>

    </div>
    <div class="col-md-1">&nbsp;</div>

</div>

<div class="modal fade" id="twoFactor">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 style="margin-bottom:0">Two-factor Authentication</h4>
            </div>

            <div class="modal-body">
                <p>By using two-factor authentication, you'll protect your OSF account with both your password and your mobile phone.</p>
                <p>If you have enabled two-factor authentication on your account, enter the current verification code from your device in this field.</p>
            </div><!-- end modal-body -->

            <div class="modal-footer">

                <a href="#" class="btn btn-default" data-dismiss="modal">OK</a>
            </div><!-- end modal-footer -->
        </div><!-- end modal-content -->
    </div><!-- end modal-dialog -->
</div><!-- end modal -->
<script>
    $(function() {
        $('#twoFactorHelpText').wrap('<a data-toggle="modal" href="#twoFactor">');
    });
</script>
</%def>


{'fraction_non_alphanumeric': 0.16801411142143172, 'fraction_numerical': 0.005438777010142584, 'mean_word_length': 1.485933503836317, 'pattern_counts': {'":': 72, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2474260', 'n_tokens_mistral': 1989, 'n_tokens_neox': 1868, 'n_words': 416}