Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
8445397d
Commit
8445397d
authored
Sep 05, 2018
by
Christian Giupponi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the bug that prevent user to login or register to the site
parent
cdad9b6c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
helpers.php
Modules/Core/helpers.php
+10
-0
login.blade.php
Modules/User/Resources/views/public/login.blade.php
+2
-1
register.blade.php
Modules/User/Resources/views/public/register.blade.php
+3
-1
begin.blade.php
Modules/User/Resources/views/public/reset/begin.blade.php
+3
-2
No files found.
Modules/Core/helpers.php
View file @
8445397d
...
...
@@ -54,3 +54,13 @@ if (! function_exists('asgard_editor')) {
return
view
(
'core::components.textarea-wrapper'
,
compact
(
'fieldName'
,
'labelName'
,
'content'
));
}
}
if
(
!
function_exists
(
'localize_route'
))
{
function
localize_route
(
$route
,
$locale
=
null
)
{
$locale
=
$locale
?
:
app
()
->
getLocale
();
return
str_replace
(
env
(
'APP_URL'
),
rtrim
(
env
(
'APP_URL'
),
'/'
)
.
'/'
.
$locale
,
route
(
$route
));
}
}
\ No newline at end of file
Modules/User/Resources/views/public/login.blade.php
View file @
8445397d
...
...
@@ -13,7 +13,8 @@
<p class="
login
-
box
-
msg
">{{ trans('user::auth.sign in welcome message') }}</p>
@include('partials.notifications')
{!! Form::open(['route' => 'login.post']) !!}
<form method="
POST
" action="
{{
localize_route
(
'login.post'
)}}
" accept-charset="
UTF
-
8
">
{
{csrf_field()}
}
<div class="
form
-
group
has
-
feedback
{{
$errors
->
has
(
'email'
)
?
' has-error'
:
''
}}
">
<input type="
email
" class="
form
-
control
" autofocus
name="
email
" placeholder="
{{
trans
(
'user::auth.email'
)
}}
" value="
{{
old
(
'email'
)}}
">
...
...
Modules/User/Resources/views/public/register.blade.php
View file @
8445397d
...
...
@@ -11,7 +11,9 @@
<div class="
register
-
box
-
body
">
<p class="
login
-
box
-
msg
">{{ trans('user::auth.register') }}</p>
@include('partials.notifications')
{!! Form::open(['route' => 'register.post']) !!}
<form method="
POST
" action="
{{
localize_route
(
'register.post'
)}}
" accept-charset="
UTF
-
8
">
{
{csrf_field()}
}
<div class="
form
-
group
has
-
feedback
{{
$errors
->
has
(
'email'
)
?
' has-error has-feedback'
:
''
}}
">
<input type="
email
" name="
email
" class="
form
-
control
" autofocus
placeholder="
{{
trans
(
'user::auth.email'
)
}}
" value="
{{
old
(
'email'
)
}}
">
...
...
Modules/User/Resources/views/public/reset/begin.blade.php
View file @
8445397d
...
...
@@ -13,7 +13,8 @@
<p class="
login
-
box
-
msg
">{{ trans('user::auth.to reset password complete this form') }}</p>
@include('partials.notifications')
{!! Form::open(['route' => 'reset.post']) !!}
<form method="
POST
" action="
{{
localize_route
(
'reset.post'
)}}
" accept-charset="
UTF
-
8
">
{
{csrf_field()}
}
<div class="
form
-
group
has
-
feedback
{{
$errors
->
has
(
'email'
)
?
' has-error'
:
''
}}
">
<input type="
email
" class="
form
-
control
" autofocus
name="
email
" placeholder="
{{
trans
(
'user::auth.email'
)
}}
" value="
{{
old
(
'email'
)}}
">
...
...
@@ -28,7 +29,7 @@
</button>
</div>
</div>
{!! Form::close() !!}
</form>
<a href="
{{
route
(
'login'
)
}}
" class="
text
-
center
">{{ trans('user::auth.I remembered my password') }}</a>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment