Logging in and Signing up on the client done
Tons of bug fixes too
This commit is contained in:
1 parent
50c0d6a051
commit
dc454ccf3a
18 files changed
+367
-181
No files matched your search
@@ -127,7 +127,7 @@ impl RealmChatServer {
|
||||
}
|
||||
|
||||
async fn is_user_in_server(&self, userid: &str) -> bool {
|
||||
let result = query!("SELECT NOT EXISTS (SELECT 1 FROM user WHERE userid = ?) AS does_exist", userid).fetch_one(&self.db_pool).await;
|
||||
let result = query!("SELECT EXISTS (SELECT 1 FROM user WHERE userid = ?) AS does_exist", userid).fetch_one(&self.db_pool).await;
|
||||
|
||||
match result {
|
||||
Ok(record) => record.does_exist != 0,
|
||||
|
||||
Reference in new issue
Block a user