Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
05bb8da9
Commit
05bb8da9
authored
Jun 24, 2013
by
Côme Bernigaud
Committed by
Benoit Mortier
Jun 24, 2013
Browse files
Fixes
#2407
Removed password_change_needed mecanism
parent
bfd687d7
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/class_plugin.inc
View file @
05bb8da9
...
...
@@ -623,15 +623,6 @@ class plugin
return
$string
;
}
/*
* \brief Indicate whether a password change is needed or not
*/
function
password_change_needed
()
{
return
FALSE
;
}
/*!
* \brief Show header message for tab dialogs
*
...
...
include/class_tabs.inc
View file @
05bb8da9
...
...
@@ -302,22 +302,6 @@ class tabs
}
}
/*
* \brief Ask all plugins for needed password changes
*/
function
password_change_needed
()
{
/* Ask all plugins for needed password changes */
foreach
(
$this
->
by_object
as
&
$obj
)
{
if
(
$obj
->
password_change_needed
())
{
return
TRUE
;
}
}
unset
(
$obj
);
return
FALSE
;
}
/*!
* \brief Check
*
...
...
plugins/admin/users/class_userManagement.inc
View file @
05bb8da9
...
...
@@ -401,44 +401,6 @@ class userManagement extends management
}
}
/*! \brief Save user modifications.
* Whenever we save a 'new' user, request a password change for him.
*/
function
saveChanges
()
{
$str
=
management
::
saveChanges
();
if
(
!
empty
(
$str
))
return
(
$str
);
if
(
is_object
(
$this
->
tabObject
))
{
/* If tabObject still exists, it means there was some errors */
return
""
;
}
if
(
isset
(
$this
->
last_tabObject
->
by_object
[
'user'
])
&&
$this
->
last_tabObject
->
by_object
[
'user'
]
->
password_change_needed
())
{
$this
->
force_hash_type
[
$this
->
last_tabObject
->
dn
]
=
$this
->
last_tabObject
->
by_object
[
'user'
]
->
pw_storage
;
$this
->
pwd_change_queue
[]
=
$this
->
last_tabObject
->
dn
;
return
$this
->
handlePasswordQueue
();
}
}
function
cancelEdit
()
{
$str
=
management
::
cancelEdit
();
if
(
!
empty
(
$str
))
return
(
$str
);
if
(
isset
(
$this
->
last_tabObject
->
by_object
[
'user'
])
&&
$this
->
last_tabObject
->
by_object
[
'user'
]
->
dn
!=
"new"
&&
$this
->
last_tabObject
->
by_object
[
'user'
]
->
password_change_needed
()){
$this
->
force_hash_type
[
$this
->
last_tabObject
->
dn
]
=
$this
->
last_tabObject
->
by_object
[
'user'
]
->
pw_storage
;
$this
->
pwd_change_queue
[]
=
$this
->
last_tabObject
->
dn
;
return
(
$this
->
handlePasswordQueue
());
}
}
/*! \brief Intiates user creation.
* If we've user templates, then the user will be asked to use to use one.
* -> See 'templateContinue' for further handling.
...
...
Côme Chilliet
@cchilliet
mentioned in issue
#808 (closed)
·
Sep 02, 2017
mentioned in issue
#808 (closed)
mentioned in issue #808
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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