Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
f795c069
Commit
f795c069
authored
Feb 08, 2016
by
difox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix school link
parent
83b88423
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
common/modules/eauth/models/UserEAuth.php
common/modules/eauth/models/UserEAuth.php
+3
-2
common/modules/school/views/course/index.php
common/modules/school/views/course/index.php
+3
-0
common/modules/users/models/User.php
common/modules/users/models/User.php
+1
-1
No files found.
common/modules/eauth/models/UserEAuth.php
View file @
f795c069
...
...
@@ -94,10 +94,11 @@ class UserEAuth extends \common\components\ActiveRecordModel
$model
=
User
::
findByUsername
(
$socialProfile
[
'email'
]);
// Assign service token
$modelEAuth
=
$model
->
eauth
;
$modelEAuth
=
$model
->
eauth
?
$model
->
eauth
:
new
UserEauth
();
$modelEAuth
->
user_id
=
$model
->
user_id
;
$modelEAuth
->
{
$eauthField
}
=
$socialProfile
[
'id'
];
$modelEAuth
->
update
(
false
,
[
$eauthField
]);
echo
'<pre>'
;
die
(
var_dump
(
$model
));
echo
'</pre>'
;
return
$model
;
}
else
{
...
...
common/modules/school/views/course/index.php
View file @
f795c069
...
...
@@ -57,6 +57,7 @@
</div>
</div>
</section>
<?php
if
(
Yii
::
$app
->
user
->
isGuest
)
:
?>
<section
class=
"sh_ft"
>
<div
class=
"container"
>
<div
class=
"row"
>
...
...
@@ -75,6 +76,8 @@
</div>
</div>
</section>
<?php
endif
?>
<div
class=
"tr_foot"
></div>
<footer>
<div
class=
"container"
>
...
...
common/modules/users/models/User.php
View file @
f795c069
...
...
@@ -556,7 +556,7 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
public
function
isUserEmailExists
(
$email
)
{
return
(
bool
)
static
::
find
(
[
'email'
=>
$email
])
->
count
();
return
(
bool
)
static
::
find
(
)
->
where
(
'email = :email'
,
[
':email'
=>
$email
])
->
count
();
}
}
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