Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
midorikocak committed Feb 29, 2020
1 parent 190bbde commit a1576c1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .phpcs-cache

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Security
- Nothing

## [1.1.1] - 2020-02-28

### Added
- Nothing

### Deprecated
- Nothing

### Fixed
- Username bug in User POPO

### Removed
- Nothing

### Security
- Nothing
4 changes: 2 additions & 2 deletions coverage.clover
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1582952970">
<project timestamp="1582952970">
<coverage generated="1582968334">
<project timestamp="1582968334">
<package name="midorikocak\nanoauth">
<file name="/Users/midorikocak/Documents/src/nano-auth/src/Authentication.php">
<class name="midorikocak\nanoauth\Authentication" namespace="midorikocak\nanoauth">
Expand Down
4 changes: 2 additions & 2 deletions src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class User implements UserInterface
public function __construct(?string $id, string $username, string $email, string $password)
{
$this->id = $id;
$this->email = $username;
$this->username = $email;
$this->email = $email;
$this->username = $username;
$this->password = $password;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/AuthenticationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function testGetLoggedUser(): void

public function testRegister(): void
{
$this->auth->register('email@email2.com', 'username2', 'password2');
$this->auth->register('username2', 'email@email2.com', 'password2');
$this->auth->login('username2', 'password2');
$this->assertTrue($this->auth->isLogged());
$this->assertNotEmpty($this->auth->getLoggedUser());
Expand Down

0 comments on commit a1576c1

Please sign in to comment.