我只是想请求帮助以使我的方案工作?我想使用PasswordResetToken获取UserName.
这是我的情景.
当用户单击链接时.我将只查询请求["token"]以获取用户名,然后将允许用户更改密码和自动登录.
这是我的代码如下:
public ActionResult ChangePassword()
{
ChangePasswordModel model = new ChangePasswordModel();
string token=string.Empty;
try
{
token = Request["token"].ToString();
int userId = WebSecurity.GetUserIdFromPasswordResetToken(token);
if (userId > 0)
{
//Get the user object by (userid)
//???????????????????
//???????????????????
}
else
{
throw new Exception("The change password token has expired. Please go to login page and click forgot password again.");
}
}
catch
{
model.HasError = true;
ModelState.AddModelError("", "The change password token has expired. Please go to login page and …Run Code Online (Sandbox Code Playgroud)我只是想问一下div中是否可以使用旋转文本?
<style>
div{
-moz-border-radius: 50px/50px;
-webkit-border-radius: 50px 50px;
border-radius: 80px/80px;;
border:solid 21px #f00;
width:100px;
height:100px;
}
</style>
<div>this will rotate 360 deg like marquee</div>
Run Code Online (Sandbox Code Playgroud)
谢谢
Umbraco语言(本地化)的最佳实践是什么?我们尝试在其上添加带有语言代码的下拉选项,并在其名称示例(Default-NL,Default-US)上添加了带有postfix的页面.
你能给我一些指导来阅读任何建议吗?
提前致谢.