Yii2 create custom rest action with post params
<p>In my yii2 application i need to develop a rest action <code>authUser()</code> </p>

<pre><code>public function actionAuthUser($username, $password)
{
    return \api\models\User::findOne(['username' =&gt; $username, 'password' =&gt; sha1($password)]);
}
</code></pre>

<p>The params should be passed with post method because they contain sensitive informations.</p>

<p>How can i do this? How can i set the url manager to receive with post method my params?</p>

<p>Thanks in advance for all the help</p>