Created
February 19, 2019 04:45
-
-
Save shamsher327/45b7a453b11bae48ab609fd6496d18df to your computer and use it in GitHub Desktop.
Admin User login with code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$uid = '1'; | |
$user = Drupal\user\Entity\User::load( $uid ); | |
user_login_finalize( $user ); | |
$response->send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment