mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 05:43:16 +08:00
Merge pull request #499 from wojciechka/master
Logging in with username and password does not work when using prefix URLs
This commit is contained in:
commit
0f5046a9cc
|
@ -65,4 +65,8 @@ module ApplicationHelper
|
|||
def privacy_path
|
||||
return "#{Discourse::base_uri}/privacy"
|
||||
end
|
||||
|
||||
def login_path
|
||||
return "#{Discourse::base_uri}/login"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
<body>
|
||||
<% unless current_user %>
|
||||
<form id='hidden-login-form' method="post" action="/login" style="display: none;">
|
||||
<form id='hidden-login-form' method="post" action="<%=login_path%>" style="display: none;">
|
||||
<input name="username" type="text" id="signin_username">
|
||||
<input name="password" type="password" id="signin_password">
|
||||
<input name="redirect" type="hidden">
|
||||
|
|
Loading…
Reference in New Issue
Block a user