File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,9 @@ public function user()
127
127
// First we will try to load the user using the identifier in the session if
128
128
// one exists. Otherwise we will check for a "remember me" cookie in this
129
129
// request, and if one exists, attempt to retrieve the user using that.
130
- $ user = null ;
131
-
132
130
if (! is_null ($ id )) {
133
- if ($ user = $ this ->provider ->retrieveById ($ id )) {
134
- $ this ->fireAuthenticatedEvent ($ user );
131
+ if ($ this -> user = $ this ->provider ->retrieveById ($ id )) {
132
+ $ this ->fireAuthenticatedEvent ($ this -> user );
135
133
}
136
134
}
137
135
@@ -140,17 +138,17 @@ public function user()
140
138
// the application. Once we have a user we can return it to the caller.
141
139
$ recaller = $ this ->recaller ();
142
140
143
- if (is_null ($ user ) && ! is_null ($ recaller )) {
144
- $ user = $ this ->userFromRecaller ($ recaller );
141
+ if (is_null ($ this -> user ) && ! is_null ($ recaller )) {
142
+ $ this -> user = $ this ->userFromRecaller ($ recaller );
145
143
146
- if ($ user ) {
147
- $ this ->updateSession ($ user ->getAuthIdentifier ());
144
+ if ($ this -> user ) {
145
+ $ this ->updateSession ($ this -> user ->getAuthIdentifier ());
148
146
149
- $ this ->fireLoginEvent ($ user , true );
147
+ $ this ->fireLoginEvent ($ this -> user , true );
150
148
}
151
149
}
152
150
153
- return $ this ->user = $ user ;
151
+ return $ this ->user ;
154
152
}
155
153
156
154
/**
You can’t perform that action at this time.
0 commit comments