1

フォームの送信に問題があります。フォームを送信しても何も起こりませんが、ログインとパスワードのデータは正しく送信されるはずです。私の場合は不可能なので(私の入力はStormpath + Flaskによって動的に生成されます)、可能であれば角度ディレクティブを使用して送信することは避けたいと思います。

フォームのコードは次のとおりです。

<!-- Login -->
<div class="center-block lc-block" id="l-login" data-ng-class="{ 'toggled': lctrl.login === 1 }"
 data-ng-if="lctrl.login === 1">
<form role="form" method="post">
        {% with messages = get_flashed_messages() %}
        {% if messages %}
        <div class="alert alert-danger alert-dismissible" role="alert">
            <span type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">×</span>
            </span>
            {% for message in messages %}
            {{ message }}
            {% endfor %}
        </div>
        {% endif %}
        {% endwith %}
        {{ form.hidden_tag() }}
    <div class="block-header">
        <h3>Sign In</h3>
    </div>
    <div class="input-group m-b-20">
        <span class="input-group-addon"><i class="zmdi zmdi-account"></i></span>
        <div class="fg-line">
            {% if config['STORMPATH_ENABLE_USERNAME'] %}
            {{ form.login(autofocus='true', class='form-control', placeholder='Username', required='true') }}
            {% else %}
            {{ form.login(autofocus='true', class='form-control', placeholder='Username or Email', required='true')
            }}
            {% endif %}
        </div>
    </div>

    <div class="input-group m-b-20">
        <span class="input-group-addon"><i class="zmdi zmdi-male"></i></span>
        <div class="fg-line">
            {{ form.password(class='form-control', placeholder='Password', required='true') }}
        </div>
    </div>

    <div class="clearfix"></div>

    <div class="checkbox">
        <label>
            <input type="checkbox" value="">
            <i class="input-helper"></i>
            Keep me signed in
        </label>
    </div>

    <button class="btn btn-login btn-danger btn-float" type="submit" value="submit"><i
            class="zmdi zmdi-arrow-forward"></i></button>

    <ul class="login-navigation">
        <button style="margin-right:10px;" class="btn bgm-lightblue waves-effect" data-ng-click="lctrl.login = 0; lctrl.register = 1">Create Account</button>
        <button class="btn btn-warning waves-effect" data-ng-click="lctrl.login = 0; lctrl.forgot = 1">Forgot Password?</button>
    </ul>
</form>

すべての入力は、Stormpath によって動的に生成されます。ここで何が間違っている可能性がありますか?

4

1 に答える 1