组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Hiran Chaudhuri
Liferay mail domain and Sign In
2011年11月13日 下午12:28
答复

Hiran Chaudhuri

等级: Regular Member

帖子: 183

加入日期: 2010年9月1日

最近的帖子

It seems to me that whatever I enter in Portal Instances/Mail Domain, this value will be displayed in the sign-in page as default email address.
It also seems that this value prevents web browsers from directly inserting the user's credentials straight away.

What can I do to get browsers to fill in the form automatically?
I tried to set an empty mail domain, but Liferay does not allow that...
David H Nebinger
RE: Liferay mail domain and Sign In
2011年11月15日 上午9:40
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 8167

加入日期: 2006年9月1日

最近的帖子

It defaults to your mail domain to simplify the login process for your local users.

I use the "remember me" checkbox to save my credentials.

Otherwise what you're asking for is not really possible; the server doesn't know who you are (you haven't logged in yet), and the browser has no reason to start populating form fields just cuz you land on a form page...
Hiran Chaudhuri
RE: Liferay mail domain and Sign In
2011年11月15日 下午1:14
答复

Hiran Chaudhuri

等级: Regular Member

帖子: 183

加入日期: 2010年9月1日

最近的帖子

David H Nebinger:
It defaults to your mail domain to simplify the login process for your local users.

I use the "remember me" checkbox to save my credentials.

Understood. However I do not use cookies, which would be required for that solution.
However I want to use the browser builtin functionality.

David H Nebinger:
Otherwise what you're asking for is not really possible; the server doesn't know who you are (you haven't logged in yet), and the browser has no reason to start populating form fields just cuz you land on a form page...

Then how does this work on zillions of other sites?
I delete my cookies regularly, still the browser (whom I allow to store credentials) populates the fields as soon as the form/page is fully loaded.

edit: have a look at http://support.mozilla.com/en-US/kb/Form%20autocomplete and http://support.mozilla.com/en-US/kb/make-firefox-remember-usernames-and-passwords
David H Nebinger
RE: Liferay mail domain and Sign In
2011年11月16日 上午6:17
答复

David H Nebinger

Community Moderator

等级: Liferay Legend

帖子: 8167

加入日期: 2006年9月1日

最近的帖子

The browser can store username/password combos. When you delete the cookies, it doesn't affect the username/password database.

When you use the browser functionality to save the username/password combo, the browser knows the page and id of the element that has the username and, when that page is rendered, can offer to pre-populate the values but only in empty fields.

In any case, this is all browser-triggered stuff. There is nothing in your page (or Liferay) which triggers this activity.
Hiran Chaudhuri
RE: Liferay mail domain and Sign In
2011年11月17日 下午10:55
答复

Hiran Chaudhuri

等级: Regular Member

帖子: 183

加入日期: 2010年9月1日

最近的帖子

David H Nebinger:
The browser can store username/password combos. When you delete the cookies, it doesn't affect the username/password database.

When you use the browser functionality to save the username/password combo, the browser knows the page and id of the element that has the username and, when that page is rendered, can offer to pre-populate the values but only in empty fields.

Exactly that is what I want to use.

David H Nebinger:
In any case, this is all browser-triggered stuff. There is nothing in your page (or Liferay) which triggers this activity.

But it seems that Liferay can prevent it. The browser does not fill in the Liferay Sign In form.
And I realized this is as long as such fields come pre-filled with some value. As soon as I remove that, Firefox offers the stored value.

So what can I do to make Liferay deliver an empty sign-in form without any mail domain in it?