bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

setUser not on any interface #862

Open bluebaroncanada opened 7 years ago

bluebaroncanada commented 7 years ago

The setUser function is not on any interface implemented by storage/pdo

$success = $storage->setUser('testusername', 'testpass', 'Test', 'User');
bluebaroncanada commented 7 years ago

It also doesn't set the email which is also used as the key in one of the tests.

afilippov1985 commented 7 years ago

setUser() used only for testing https://github.com/bshaffer/oauth2-server-php/issues/675#issuecomment-162627534

svycka commented 7 years ago

@afilippov1985 if those exist only for testing maybe reflection could be used instead?