Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

response handling #31

@nithiz

Description

@nithiz

Since validation is taken care of in the plugin itself, is it not very easy to just do the following to fake the validation?

<form method="POST" action=/users/opauth_complete">

    <input type="text" name="auth[uid]">
        <input type="text" name="validated" value="1">
    <button type="submit">submit</button>

</form>

Now for example i just submit the uid of a random facebook user and i'm logged in..

Am i doing something wrong? The only check i have is the following:

if (
    isset($this->data['error']) || 
    (isset($this->data['validated']) && !$this->data['validated']) ||
    !isset($this->data['validated'])
) {
    // Error handling here...
} else {
    // User passed validation
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions