projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some extra auth_user fixes.
[platal.git]
/
modules
/
googleapps.php
diff --git
a/modules/googleapps.php
b/modules/googleapps.php
index
0d868c7
..
de3d668
100644
(file)
--- a/
modules/googleapps.php
+++ b/
modules/googleapps.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
8
Polytechnique.org *
+ * Copyright (C) 2003-200
9
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-198,8
+198,7
@@
class GoogleAppsModule extends PLModule
// Force synchronization of plat/al and Google Apps passwords.
if ($action == 'forcesync' && $account->sync_password) {
// Force synchronization of plat/al and Google Apps passwords.
if ($action == 'forcesync' && $account->sync_password) {
- $res = XDB::query("SELECT password FROM auth_user_md5 WHERE user_id = {?}", $user->id());
- $account->set_password($res->fetchOneCell());
+ $account->set_password($user->password());
$page->trigSuccess('Le mot de passe a été synchronisé.');
}
$page->trigSuccess('Le mot de passe a été synchronisé.');
}