Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Added several new methods | 0bc95876af1041a053fbb426dfa3c5fb4600647b | EyadMohammedOsama | 2019-08-16 00:03:27 |
Initial Commit | c1a0c0ceaf232bec3dd3faa0c5d49cf4f840f364 | EyadMohammedOsama | 2019-08-15 16:18:26 |
Initial Commit | 34400f91e493a86b1a8e0a1e32bc74cfb546c681 | EyadMohammedOsama | 2019-08-13 23:04:27 |
Added download button | b2778c1c6ed5e42de7bac6ae9223facf33469b8e | EyadMohammedOsama | 2019-08-08 22:17:29 |
Initial Commit | 31265bb888791eb58829bdf07222d319a3387629 | EyadMohammedOsama | 2019-08-08 22:17:19 |
Added router for downloads | 700b80e06b8b1809135fe32c0072beb7542570c6 | EyadMohammedOsama | 2019-08-08 22:17:08 |
Fiddle favoriting event implementation | 5ea13953d8fdd949d122ff3d63bc427d2ac78a43 | EyadMohammedOsama | 2019-08-07 23:21:04 |
Added a trigger to fiddle favoriting | 435bb1aacd90b540e822b68858a665955e7b6f35 | EyadMohammedOsama | 2019-08-07 23:20:20 |
Added Pusher.js | ca81b2a591c04e678e415c3fdf10a41a3a11ac62 | EyadMohammedOsama | 2019-08-07 23:18:08 |
Configured broadcasting | 61ad3285cfc37dfb4265874cf7b3496992846f7e | EyadMohammedOsama | 2019-08-07 23:17:36 |
Installed PHP Pusher | 85bd7fa0401d69eff36ea21fa6bb60f28601ac14 | EyadMohammedOsama | 2019-08-07 23:16:31 |
Initial commit | 4a865759d403eda3854c69005a3cfdbd7d737096 | EyadMohammedOsama | 2019-08-05 21:13:21 |
Added several new routes | 85e08b7120e6ba249f3ecd523234c72f5c19c1cc | EyadMohammedOsama | 2019-08-05 21:12:53 |
Added several new routes | ba3fca128d64c47fa0e9c8c08fd5e0a6635b08ae | EyadMohammedOsama | 2019-08-04 23:15:44 |
Configured sessions table | 749fa85c728ab023aee73bff8f08677063edc70a | EyadMohammedOsama | 2019-08-04 23:15:19 |
Added a file system to store avatars | e260a81485424f72c8a5154a91d5f7c83e180af5 | EyadMohammedOsama | 2019-08-04 23:15:00 |
Added new validation rules | 42c291c0cbc2181e1fd9cf87991fded5550512cf | EyadMohammedOsama | 2019-08-04 23:14:36 |
Added new controllers | c7a9229044be1d910911b89a6a049c0e0b4bd3a9 | EyadMohammedOsama | 2019-08-04 23:14:08 |
Added new helper file | d4d3fd48a15af64a3abaffee411ecf542670be9b | EyadMohammedOsama | 2019-08-04 23:13:20 |
Added new models | 0af667e894277c7a08499ac0bb2a82650485ccb9 | EyadMohammedOsama | 2019-08-04 23:13:03 |
File | Lines added | Lines deleted |
---|---|---|
app/Users.php | 19 | 0 |
File app/Users.php changed (mode: 100644) (index baad9b9..effdd38) | |||
... | ... | class Users extends Model | |
57 | 57 | public static function GetAllUsers() { | public static function GetAllUsers() { |
58 | 58 | return self::select("Username", "RegisterationDate")->orderBy("RegisterationDate", "asc")->get(); | return self::select("Username", "RegisterationDate")->orderBy("RegisterationDate", "asc")->get(); |
59 | 59 | } | } |
60 | |||
61 | public static function ConfirmAccount($username) { | ||
62 | self::where("Username", $username)->update([ | ||
63 | "IsConfirmed" => 1 | ||
64 | ]); | ||
65 | } | ||
66 | |||
67 | public static function UsernameBelongsToEmail($username, $email) { | ||
68 | return (self::where([ | ||
69 | ["Username", "=", $username], | ||
70 | ["Email", "=", $email] | ||
71 | ])->count() == 1); | ||
72 | } | ||
73 | |||
74 | public static function UpdatePassword($username, $password) { | ||
75 | self::where("Username", $username)->update([ | ||
76 | "Password" => password_hash($password, PASSWORD_BCRYPT) | ||
77 | ]); | ||
78 | } | ||
60 | 79 | } | } |