File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<extension version =" 3.0.0" type =" plugin" group =" api" method =" upgrade" >
3
3
<name >PLG_API_USERS</name >
4
- <version >3.0.0 </version >
5
- <creationDate >22nd Sep 2022</creationDate >
4
+ <version >3.0.1 </version >
5
+ <creationDate >12th Oct 2022</creationDate >
6
6
<author >Techjoomla</author >
7
7
<authorEmail >extensions@techjoomla.com</authorEmail >
8
8
<authorUrl >www.techjoomla.com</authorUrl >
Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ public function keygen()
71
71
$ app = Factory::getApplication ();
72
72
$ username = $ app ->input ->get ('username ' , 0 , 'STRING ' );
73
73
74
- $ user = Factory::getUser ();
75
74
$ id = UserHelper::getUserId ($ username );
75
+ $ user = Factory::getUser ($ id );
76
76
77
77
if ($ username )
78
78
{
@@ -138,8 +138,7 @@ public function keygen()
138
138
// Load api key table
139
139
Table::addIncludePath (JPATH_ROOT . '/administrator/components/com_api/tables ' );
140
140
$ table = Table::getInstance ('Key ' , 'ApiTable ' );
141
- $ table ->load (array ('userid ' => $ user ->id ));
142
-
141
+ $ table ->load (array ('userid ' => $ userId ));
143
142
$ key = $ table ->hash ;
144
143
145
144
// Add new key in easysocial table
You can’t perform that action at this time.
0 commit comments