Click here to Skip to main content
15,848,726 members

Comments by Member 13995628 (Top 2 by date)

Member 13995628 24-Sep-18 10:24am View    
I've tryied that before and ok it doesn't shows me an error anymore, but nothing happens after I click login, what am I missing here :/
method for login:
public function login($username = null, $password = null) {

		$user = $this->find($username);
		
		if ($user) {
			if ($this->data()->password === Hash::make($password, $this->data()->salt)) {
				Session::put($this->_sessionName, $this->data()->id);
				return true;
			}
		}
		return false;
	}

	public function data() {
		return $this->_data;
	}
Member 13995628 24-Sep-18 10:11am View    
No it returns boolean false, and db table isn't empty :/