English 中文(简体)
• 如何在备用器中使用原木
原标题:How to implement login in a Backbone app

我在知道我们开始执行这一标志的地方有背书。 现在,我没有志向,评估首先要建立所有相关模式和收集工作。 现在,APIC要求召开一次会议,以回应。

What would be the better solution:

  1. having a login.html that forward to the app.html after a successful login
  2. having the login to be part of the Backbone app with an own route

在这两种解决办法中,我如何防止用户再次看到 log的dia,就像把 back子放在一边?

最佳回答

I use the standard way of login handling, a simple login page separated from the application.

路线 如果用户不作认证,我就对用户会议进行简单的中度量检查,将其转至<代码>/admin/login。

一旦用户获得有效会议,他可自由进入<代码>/admin/,如果我的申请居住的话。 当你需要向一些开放式国际数据库或奥乌特供应商认证用户时,情况也是如此。

浏览器在处理认证方面没有用处,因为认证过于简单,无法在你的支持下处理。 事实上,在我的支持下,只有三个标准路线:

/* accessible routes */
/admin/login
/* protected routes: */
/admin/
/admin/(...)
/admin/logout

关于后纽顿问题,你只需要知道用户是否已经有了有效的会议,然后向正确路线(对改道通道的认识)转移/转移。

问题回答

暂无回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Remotely authenticating client Windows user on demand

Suppose I am writing a server for a particular network protocol. If I know that the client is running on a Windows machine, is it possible for my server to authenticate the Windows user that owns the ...

Role/Permission based forms authorizing/authentication?

While looking into forms authorizing/authentication, I found that it is possible to do role based authorizing by adding an array of roles to a FormsAuthenticationTicket. That way I can write User....

热门标签