fix: typo isAuthenticate -> isAuthenticated
This commit is contained in:
@ -44,7 +44,7 @@ export default class extends AbstractView {
|
||||
|
||||
async blockButton() {
|
||||
// Block option
|
||||
if (await client.isAuthenticate() === false)
|
||||
if (await client.isAuthenticated() === false)
|
||||
return;
|
||||
|
||||
if (client.me.id != this.user_id) {
|
||||
@ -72,7 +72,7 @@ export default class extends AbstractView {
|
||||
}
|
||||
|
||||
async friendButton() {
|
||||
if (await client.isAuthenticate() === false)
|
||||
if (await client.isAuthenticated() === false)
|
||||
return;
|
||||
|
||||
if (client.me.id != this.user_id) {
|
||||
|
@ -21,7 +21,7 @@ export default class extends AbstractView {
|
||||
|
||||
async postInit() {
|
||||
|
||||
let logged = await client.isAuthenticate();
|
||||
let logged = await client.isAuthenticated();
|
||||
let profiles = await client.profiles.all();
|
||||
|
||||
//console.log(client.notice.data);
|
||||
|
@ -36,7 +36,7 @@ export default class extends AbstractAuthenticatedView
|
||||
|
||||
let response_data = await client.account.delete(current_password);
|
||||
|
||||
console.log(await client.isAuthenticate())
|
||||
console.log(await client.isAuthenticated())
|
||||
if (response_data === null || response_data === "user deleted")
|
||||
{
|
||||
navigateTo("/login");
|
||||
|
@ -8,7 +8,7 @@ export default class extends AbstractRedirectView{
|
||||
|
||||
async redirect()
|
||||
{
|
||||
if (await client.isAuthenticate() === false)
|
||||
if (await client.isAuthenticated() === false)
|
||||
{
|
||||
navigateTo(this.redirect_url);
|
||||
return 1;
|
||||
|
@ -8,7 +8,7 @@ export default class extends AbstractRedirectView{
|
||||
|
||||
async redirect()
|
||||
{
|
||||
if (await client.isAuthenticate() === false)
|
||||
if (await client.isAuthenticated() === false)
|
||||
return 0;
|
||||
navigateTo(this.redirect_url);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user