我们正试图在我的应用程序中推出身份验证,但它并不适用于我们。
我们已经设置了当前权限和当前授权程序,甚至已经将登录查询设置为只选择‘a’,这样我们就可以得到一个结果集。
我们已经将登录工作流复制到工作流/系统目录中。
它看起来甚至不想运行登录查询。
start.xml工作流:
<workflow>
<authenticate error-screen="login-error" dataset="login">
<show-screen name="login" />
</authenticate>
<call-workflow name="home"/>
</workflow>login.xml屏幕:
<screen xmlns:action="urn:aviarc:widget:com.aviarc.toronto.widget.core.action:1"
xmlns:app="urn:aviarc:widget:application">
<group-box visible="y" left="10" right="4" top="10" bottom="4" class="blue">
<image height="80" width="245" left="10" top="5" class="mfcologo" />
<line height="5" left="0" right="0" top="120" class="myerblue" />
<text-static visible="y" left="74" top="151" width="80" height="20" text="User name:" />
<text-static visible="y" left="234" top="151" width="80" height="20" text="Password:" />
<text-edit name="username" left="74" top="182" width="100" height="20" field="login.user_name" />
<text-edit name="password" left="234" top="182" width="100" height="20" field="login.user_password" datatype="password" />
<button left="376" top="182" width="60" height="20" label="Login" action="Next"/>
</group-box>
</screen>system/Login.xml工作流:
<workflow xmlns:au-security="urn:aviarc:xmlcommand:au.com.aviarc.xmlcommand.security">
<au-security:hash-text text="{$login.user_password}" result-field="login.hashed-password" />
<dataset name="cslogin" databroker="loginqry" query="get-all">
<param name="username" value="{$login.user_name}" />
<param name="password" value="{$login.hashed-password}" />
</dataset>
<if test="dataset-empty" value1="cslogin">
<then>
<set-field field="login.authenticated" value="n"/>
</then>
<else>
<set-field field="login.authenticated" value="y"/>
</else>
</if>
</workflow>发布于 2012-10-28 23:27:47
工作流身份验证要求在输入"username“字段之前填充”username“字段,否则身份验证将立即失败并显示登录错误屏幕。
在您的示例中,将login.xml屏幕中的行更改为:
<text-edit name="username" left="74" top="182" width="100" height="20" field="login.user_name" />将是:
<text-edit name="username" left="74" top="182" width="100" height="20" field="login.username" />并在系统/登录工作流中更新对其的引用。
https://stackoverflow.com/questions/13114089
复制相似问题