Help us understand the problem. What is going on with this article?

[備忘録]symfony2の認証処理で標準と違うユーザー名パスワードのタグ名を使用した時の設定

More than 5 years have passed since last update.
<div ng-controller="LoginController as Login">
<form action="/login" id="loginForm" name="loginForm" method="post" novalidate>

  <input type="text" id="loginId" name="form[loginId]" placeholder="Login ID"
    required="true" ng-model="Login.loginId" value="" autofocus/>

  <input type="password" id="loginPwd" name="form[loginPwd]"
    placeholder="password" required="true" ng-model="Login.loginPwd" value=""/>

  <button type="button"ng-click="Login.doLogin()">Sign in</button>

</form>
</div>

の場合、こう書く。

secrity.yml
        secured_area:
            form_login:
                # ログイン画面URL
                login_path: /login
                # ログイン実行URL
                check_path: /login_check
                # ユーザ名とパスワードのタグ名
                username_parameter:             form[loginId]
                password_parameter:             form[loginPwd]

cyclon2joker
ほぼ、無職。 最近のオモチャはMicro:bit。 関西でArduinoとスマフォで戯れるよーな仕事がしたい。。。
http://cyclon2joker.herokuapp.com
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした