Anahita Project

The #Anahita #project management group. Visit https://github.com/anahitasocial for more information about Anahita code and how to get started.

Stories

Rastin Mehr

Rastin Mehr shared a note

I'm doing some code refactoring in the core Anahita to make it more DRY and reduce hierarchies. We didn't do these in the last cycle, because the goal was extracting Joomla, but now we need the ref... Read More
I'm doing some code refactoring in the core Anahita to make it more DRY and reduce hierarchies. We didn't do these in the last cycle, because the goal was extracting Joomla, but now we need the refine the code and clean up our API before the Anahita-React app can move forward. #Anahita #Hackathon Read Less
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
I did a fresh install too and everything seemed to be working. I just tagged the 4.3.7 release. I'll write an announcement this weekend.
Yes, it was a fresh install. Thanks @Rastin.
Rastin Mehr liked this
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
Tested all of the above without any issues!
Rastin Mehr liked this
Cool! This was a great collaboration 🙌
When are you planning on tagging the next release?
I could do it tonight. Did you test by creating a new installation?
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
Nick, I've merged the code in the master branch and updated Anahitapolis. So far I could login with reCaptcha fine. I've done some tests with no problems. If you could also test the master branch it would be wonderful... Read More
Nick, I've merged the code in the master branch and updated Anahitapolis. So far I could login with reCaptcha fine. I've done some tests with no problems. If you could also test the master branch it would be wonderful. Then I'll tag the release so people can use it. Read Less
Sorry! I'll test it out tomorrow.
Rastin Mehr liked this
Rastin Mehr

Rastin Mehr commented on the Article

Anahita 4.* Roadmap

This is the list of goals that we want to accomplish for this release. The implementation details and time are generally unknown until we actually start developing them.
16 people liked this
One more item crossed from the roadmap. We now have a Google reCaptcha plugin.
Rajkumar Mundel liked this
Rastin Mehr

Rastin Mehr commented on the topic

Groupped follow modal

I was surfing around Anahitapolis and noticed that on Sceko's profile (https://www.getanahita.com/people/sceko), if you click on "14 others", instead of opening a modal which it use to do, you're t... Read More
I was surfing around Anahitapolis and noticed that on Sceko's profile (https://www.getanahita.com/people/sceko), if you click on "14 others", instead of opening a modal which it use to do, you're taken to a different page. This must've been missed during the mootools to jquery conversion.I wrote a little js, modeling it after the voters modal and stuck it in there. It's not perfect, but better than nothing and we're redoing the entire front-end soon enough anyhow.https://github.com/anahitasocial/anahita/pull/452

Read Less
Thank you Nick, I'll review it today
Nick, I checked your PR. We already have that code here: https://github.com/anahitasocial/anahita/blob/master/src/media/lib_anahita/js/anahita/actions/actor.js#L316

I debugged it and it is working now. The fix is i... Read More
Nick, I checked your PR. We already have that code here: https://github.com/anahitasocial/anahita/blob/master/src/media/lib_anahita/js/anahita/actions/actor.js#L316

I debugged it and it is working now. The fix is in the reCaptcha branch. If you could test that branch please, I'll merge it today and update Anahitapolis for further testing. Read Less
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
I can't register on the site because the validate action to check if usernames or emails always fails with an Unauthorized Request error.
Rastin Mehr liked this
I wonder why! Those are GET requests not POST. It should work
Nah, they're POST requests.
I'll look into it today
The issue is fixed. I needed to refine the request checking process. Could you please test the branch one more time? Also try editing a person profile, upload an avatar, permissions etc. to make sure they are working ... Read More
The issue is fixed. I needed to refine the request checking process. Could you please test the branch one more time? Also try editing a person profile, upload an avatar, permissions etc. to make sure they are working too. Read Less
Nick Swinford

Nick Swinford started a topic

Groupped follow modal

I was surfing around Anahitapolis and noticed that on Sceko's profile (https://www.getanahita.com/people/sceko), if you click on "14 others", instead of opening a modal which it use to do, you're t... Read More
I was surfing around Anahitapolis and noticed that on Sceko's profile (https://www.getanahita.com/people/sceko), if you click on "14 others", instead of opening a modal which it use to do, you're taken to a different page. This must've been missed during the mootools to jquery conversion.I wrote a little js, modeling it after the voters modal and stuck it in there. It's not perfect, but better than nothing and we're redoing the entire front-end soon enough anyhow.https://github.com/anahitasocial/anahita/pull/452

Read Less
Rastin Mehr liked this
Rastin Mehr

Rastin Mehr commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
Connect is working fine!
Nick, the branch is ready to be tested. Let me know if you needed help with anything.
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
A JQuery widget is now injecting the div layer. So far the plugin is doing all the work without us having to make any changes to the forms other than adding a "recaptcha" class to them. Now if only I could get the cal... Read More
A JQuery widget is now injecting the div layer. So far the plugin is doing all the work without us having to make any changes to the forms other than adding a "recaptcha" class to them. Now if only I could get the callback function to work. For some reason it doesn't like the widget method as a callback function. Read Less
You might wanna try switching the addScript for $api and $recaptcha.
Nope, it didn't make a difference.
@nicholasjohn16 I think it is ready now. Could you please checkout and test this branch? Test for registration, login, and also group creation. reCaptcha shouldn't work with edit profiles. Only for when a group is cre... Read More
@nicholasjohn16 I think it is ready now. Could you please checkout and test this branch? Test for registration, login, and also group creation. reCaptcha shouldn't work with edit profiles. Only for when a group is created or a person is registering. https://github.com/anahitasocial/anahita/tree/feature/451-recaptcha Read Less
I don't think grecaptcha.reset(); ever gets executed in this code
I need to test the OAuth authentication and make sure it won’t get blocked by the plugin.
Rastin Mehr

Rastin Mehr started a topic

Dispatchers need love

The hierarchy in our dispatchers go deep. Partly because at the time that Anahita was developed it had to accommodate Joomla's site, admin, and NookuFW. But now it least 3 or 4 Dispatcher classes c...

Read More

The hierarchy in our dispatchers go deep. Partly because at the time that Anahita was developed it had to accommodate Joomla's site, admin, and NookuFW. But now it least 3 or 4 Dispatcher classes can be merged and reworked. Also it's time for Anahita to have it's own root controller and behaviour classes. That we can gradually phase out the legacy nooku code. This refactor and rework is needed for us to have good RESTful APIs. Right now it is halting the development of our React app.

#Dispatcher #API #Refactor  

Read Less
2 people liked this
Rastin Mehr

Rastin Mehr commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
I know. I want to see if I can create a behaviour and js code that does that. The idea is to make the plugin as generic as possible. The native form validation should still work also.
Here is the system plugin https://github.com/anahitasocial/anahita/blob/feature/451-recaptcha/packages/reCaptcha/src/plugins/system/recaptcha.php

Next we need a behaviour to add reCaptcha to the forms (login, regi... Read More
Here is the system plugin https://github.com/anahitasocial/anahita/blob/feature/451-recaptcha/packages/reCaptcha/src/plugins/system/recaptcha.php

Next we need a behaviour to add reCaptcha to the forms (login, registration, and add group) Read Less
I also fixed a bug which was preventing all system plugins to load properly.
I could add js files to the layout from the plugin. Now we need to write some javascript code that adds the reCaptcha div to the form and contains the logic for form submission. I'll fix that tomorrow.
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
Nick, the basic idea works. I created a system plugin and want to see if I can make the code more abstract and more DRY. Please give me some time to improve this. I'm working on this branch: https://github.com/anahita... Read More
Nick, the basic idea works. I created a system plugin and want to see if I can make the code more abstract and more DRY. Please give me some time to improve this. I'm working on this branch: https://github.com/anahitasocial/anahita/tree/feature/451-recaptcha Read Less
What's the benefit of using system plugin over a user plugin for this?
We can capture all the post requests and then stop the login, registration, and add group cases before even dispatching any of the components.
James Imani

James Imani and Rastin Mehr commented on the photo

Love it. It's nice if you post the frontend from time to time.
Oh this is for the current site. I've been wanting to simplify the content a bit and display some of the new features on the homepage.
Rastin Mehr

Rastin Mehr shared a photo

Designing a new homepage for Anahita website
3 people liked this
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
Here's the recaptcha plugin. https://github.com/anahitasocial/anahita/pull/450

I left out the onLoginPerson check because after looking, the event supplied doesn't include the request so there's no access to the re... Read More
Here's the recaptcha plugin. https://github.com/anahitasocial/anahita/pull/450

I left out the onLoginPerson check because after looking, the event supplied doesn't include the request so there's no access to the recaptcha response. Plus, I think preventing bots from registering is really most the battle.

Would you wanna leave it like this or would you want me to get the response with something like KRequest for the login event? Let me know what you think. Read Less
2 people liked this
Excellent job Nick. Please allow me sometime to review and test the code before merging it. I'll make sure to do it this long weekend.
Nick Swinford

Nick Swinford and Rastin Mehr commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
Came across a bug while testing account creation. https://github.com/anahitasocial/anahita/pull/448
Rastin Mehr liked this
Merged, thank you Nick!
Got it, thank you again 🙂
Are you using a system plugin or user plugin? I think a system plugin would be more appropriate.
A user plugin. How would a system plugin respond to user events like onBeforeUserSave and onLoginPerson?
2 people liked this
You are right, ignore what I said
Rastin Mehr

Rastin Mehr and Nick Swinford commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
template overwrite and a system plugin to capture the the token and make an API call to reCaptcha for verification. I am going to implement it for the next release. We can also add it to the add group form.
I can knock it out if you like.
Rastin Mehr liked this
This is a green light🚦
Do a proof of concept first. It's ok if you hardcode the needed js code in the layouts for now. The system plugin can catch the post value and check with recaptcha api. If it isn't successfu... Read More
This is a green light🚦
Do a proof of concept first. It's ok if you hardcode the needed js code in the layouts for now. The system plugin can catch the post value and check with recaptcha api. If it isn't successful, just throw an unauthorized 403 error. That way even if they disable the javascript, they won't be able to login. Read Less
Nick Swinford

Nick Swinford commented on the topic

Developing a Google reCaptcha Plugin

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone i...

Read More

I was thinking it would be useful to have google reCaptcha implemented as a package for Anahita in the next maintenance release. The invisible reCaptcha is particularly useful and minimal. Anyone interested to lend a hand?  

#reCaptcha

Read Less
How would the captcha be added to the registration/login form? Through a template override? Or would it be a core plugin that just adds the fields when enabled?
Rastin Mehr

Rastin Mehr commented on the topic

The React Free BSD + Patent License controversy

You may want to know that while we are about to start implementing the Anahita React app, this conversation is also happening: 

If you’re a startup, you should not use React (reflecting on the BSD ...

Read More

You may want to know that while we are about to start implementing the Anahita React app, this conversation is also happening: 

If you’re a startup, you should not use React (reflecting on the BSD + patents license) https://medium.com/@raulk/if-youre-a-startup-you-should-not-use-react-reflecting-on-the-bsd-patents-license-b049d4a67dd2

Don’t Over-REACT to the Facebook Patents License https://blog.fossa.io/dont-over-react-to-the-facebook-patents-license-629f708f2221

React, Facebook, and the Revocable Patent License. Why It’s a Paper Tiger https://medium.com/@dwalsh.sdlr/react-facebook-and-the-revokable-patent-license-why-its-a-paper-25c40c50b562

What are your thoughts?

Read Less

Photos View All

Articles View All

Topics View All

To-dos View All

Powered by Anahita