Push initial implementations of new repository structure

This breaks almost the entire panel, do not pull this branch in this state.

Mostly just moved old repository files to a new folder without updating anything else in order to start doing new things. Structure is not finalized.
This commit is contained in:
Dane Everitt 2017-06-10 22:28:44 -05:00
parent 65957e7ea5
commit 5c2b9deb09
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
39 changed files with 1083 additions and 166 deletions

View file

@ -117,6 +117,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
*
* @param int $token
* @return bool
* @deprecated
*/
public function toggleTotp($token)
{
@ -136,9 +137,11 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
* - at least one lowercase character
* - at least one number.
*
* @param string $password
* @param string $regex
* @param string $password
* @param string $regex
* @return void
* @throws \Pterodactyl\Exceptions\DisplayException
* @deprecated
*/
public function setPassword($password, $regex = '((?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,})')
{
@ -165,6 +168,7 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
* Return true or false depending on wether the user is root admin or not.
*
* @return bool
* @deprecated
*/
public function isRootAdmin()
{
@ -256,6 +260,16 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
return $query;
}
/**
* Store the username as a lowecase string.
*
* @param string $value
*/
public function setUsernameAttribute($value)
{
$this->attributes['username'] = strtolower($value);
}
/**
* Returns all permissions that a user has.
*