Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 1 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 3639
Línea 30... Línea 30...
30
     *
30
     *
31
     * @var string
31
     * @var string
32
     */
32
     */
33
    private $password;
33
    private $password;
Línea -... Línea 34...
-
 
34
    
-
 
35
    /**
-
 
36
     * 
-
 
37
     * @var int
-
 
38
     */
-
 
39
    private $network_id;
Línea 34... Línea 40...
34
    
40
    
35
 
41
 
36
    /**
42
    /**
37
     * 
43
     * 
Línea 44... Línea 50...
44
 
50
 
45
    /**
51
    /**
46
     * 
52
     * 
47
     * @param string $email
53
     * @param string $email
-
 
54
     * @param string $password
48
     * @param string $password
55
     * @param int $network_id
49
     */
56
     */
50
    public function setData($email, $password)
57
    public function setData($email, $password, $network_id)
51
    {
58
    {
52
        $this->email    = $email;
59
        $this->email        = $email;
-
 
60
        $this->password     = $password;
53
        $this->password = $password;
61
        $this->network_id   = $network_id;
Línea 54... Línea 62...
54
    }
62
    }
55
    
63
    
56
    /**
64
    /**
57
     * 
65
     * 
58
     * {@inheritDoc}
66
     * {@inheritDoc}
59
     * @see \Laminas\Authentication\Adapter\AdapterInterface::authenticate()
67
     * @see \Laminas\Authentication\Adapter\AdapterInterface::authenticate()
60
     */
68
     */
61
    public function authenticate()
69
    public function authenticate()
62
    {
70
    {
Línea 63... Línea 71...
63
        $userMapper = UserMapper::getInstance($this->adapter);
71
        $userMapper = UserMapper::getInstance($this->adapter);
64
        $user = $userMapper->fetchOneByEmail($this->email);
72
        $user = $userMapper->fetchOneByEmailAndNetworkId($this->email, $this->network_id);
Línea 65... Línea 73...
65
        
73