Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
767b08c6
Commit
767b08c6
authored
Oct 24, 2014
by
Lukas Reschke
Browse files
Use correct route instead
THX @schiesbn (I should setup a mail server on my local system...)
parent
57b5c82e
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/lostpassword/controller/lostcontroller.php
View file @
767b08c6
...
...
@@ -189,7 +189,7 @@ class LostController extends Controller {
ISecureRandom
::
CHAR_UPPER
);
$this
->
config
->
setUserValue
(
$user
,
'owncloud'
,
'lostpassword'
,
$token
);
$link
=
$this
->
urlGenerator
->
linkToRouteAbsolute
(
'core.lost.set
Passw
or
d
'
,
array
(
'userId'
=>
$user
,
'token'
=>
$token
));
$link
=
$this
->
urlGenerator
->
linkToRouteAbsolute
(
'core.lost.
re
set
f
or
m
'
,
array
(
'userId'
=>
$user
,
'token'
=>
$token
));
$tmpl
=
new
\
OC_Template
(
'core/lostpassword'
,
'email'
);
$tmpl
->
assign
(
'link'
,
$link
,
false
);
...
...
tests/core/lostpassword/controller/lostcontrollertest.php
View file @
767b08c6
...
...
@@ -129,7 +129,7 @@ class LostControllerTest extends \PHPUnit_Framework_TestCase {
$this
->
container
[
'URLGenerator'
]
->
expects
(
$this
->
once
())
->
method
(
'linkToRouteAbsolute'
)
->
with
(
'core.lost.set
Passw
or
d
'
,
array
(
'userId'
=>
'ExistingUser'
,
'token'
=>
'ThisIsMaybeANotSoSecretToken!'
))
->
with
(
'core.lost.
re
set
f
or
m
'
,
array
(
'userId'
=>
'ExistingUser'
,
'token'
=>
'ThisIsMaybeANotSoSecretToken!'
))
->
will
(
$this
->
returnValue
(
'https://ownCloud.com/index.php/lostpassword/'
));
$response
=
$this
->
lostController
->
email
(
'ExistingUser'
);
...
...
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