Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CORS in method delete
Post: RE: CORS in method delete

Thanks to everyone the paliz tip worked well for me! But I had to disable auto routing of routes https://i.ibb.co/jkKYmGV/Screenshot-1.jpg (https://ibb.co/s9S4nQ5) Did any detail go unnoticed?
3,957 Views
5 Replies
10-11-2021, 08:28 AM
rafinhaa
    Thread: CORS in method delete
Post: CORS in method delete

Hello everyone, I have a study api running on localhost:80 has the following routes: PHP Code: -- $routes->group("api", ["namespace" => "App\Controllers\Api"] , function($routes){ $routes->group("...
3,957 Views
5 Replies
10-08-2021, 01:43 PM
rafinhaa
    Thread: How to use regex in filters
Post: RE: How to use regex in filters

thanks, i will try some things
1,903 Views
3 Replies
09-09-2021, 07:29 AM
rafinhaa
    Thread: How to use regex in filters
Post: How to use regex in filters

I need to accept the filter without all uri except in auth. PHP Code: -- public $filters = [ 'jwtauth' => [ 'before' => ['api/v1/*'], //all but auth ], ]; -- I tried some combinations ...
1,903 Views
3 Replies
09-08-2021, 07:44 AM
rafinhaa
    Thread: Customizing ResourceController Routes
Post: Customizing ResourceController Routes

I have this controller: PHP Code: -- class Auth extends ResourceController {        protected $format    = 'json'; public function __construct(){ }     public function login(){         ...
737 Views
0 Replies
09-03-2021, 11:08 AM
rafinhaa
    Thread: Play Audio file in writable folder
Post: RE: Play Audio file in writable folder

paliz Wrote: (08-10-2021, 08:13 AM) -- Upload your file to public /upload You cannot read file from writable folder -- Yes! i moved files from folder writable to public/assets/audios [hr] I fo...
3,261 Views
5 Replies
08-10-2021, 08:32 AM
rafinhaa
    Thread: Play Audio file in writable folder
Post: RE: Play Audio file in writable folder

I tried as follows, but to no avail. moved files from writable to public/assets/audios PHP Code: --      
3,261 Views
5 Replies
08-10-2021, 07:41 AM
rafinhaa
    Thread: Dificuldade em resgatar imagem
Post: RE: Dificuldade em resgatar imagem

É disso que precisa? PHP Code: -- $idcomprovantes_acc = "arquivo1.pdf"; $result = substr($idcomprovantes_acc, -3); //pdf if ($result == 'pdf' ) {     echo "O arquivo é pdf"; }else{     echo...
3,794 Views
1 Replies
08-09-2021, 09:54 AM
rafinhaa
  Sad Thread: Play Audio file in writable folder
Post: Play Audio file in writable folder

Is it possible to play audio files that are inside the writable folder? Code: --     -- I have this code on the front end, but the audio doesn't play. Thank you all!
3,261 Views
5 Replies
08-09-2021, 09:44 AM
rafinhaa
    Thread: Myth Auth - Working with groups and permissions
Post: RE: Myth Auth - Working with groups and permission...

Thanks!
12,641 Views
13 Replies
06-28-2021, 06:10 AM
rafinhaa
    Thread: Myth Auth - Working with groups and permissions
Post: RE: Myth Auth - Working with groups and permission...

manager Wrote: (06-25-2021, 04:40 AM) -- rafinhaa Wrote: (06-24-2021, 06:40 AM) -- So am I required to declare a group and give permissions to it and then to the user? I wanted it to be user-only...
12,641 Views
13 Replies
06-25-2021, 07:27 AM
rafinhaa
    Thread: Myth Auth - Working with groups and permissions
Post: RE: Myth Auth - Working with groups and permission...

paliz Wrote: (06-23-2021, 11:00 PM) -- Are sure i tested it work for user permissions too -- which version did you use?, i am using release 1 ikesela Wrote: -- ...then add user to auth_user_p...
12,641 Views
13 Replies
06-24-2021, 06:40 AM
rafinhaa
    Thread: Myth Auth - Working with groups and permissions
Post: RE: Myth Auth - Working with groups and permission...

I've looked at the filters but it seems to only work with groups not users. PHP Code: -- $authorize = service('authorization'); $authorize->inGroup('teste', 1), // check if user 1 is in the 'test...
12,641 Views
13 Replies
06-23-2021, 08:52 AM
rafinhaa
    Thread: Myth Auth - Working with groups and permissions
Post: RE: Myth Auth - Working with groups and permission...

I found this inside the repository https://github.com/lonnieezell/myth-auth/blob/develop/docs/authorization.md What I understood so far is: role=group permission=group permission
12,641 Views
13 Replies
06-23-2021, 05:40 AM
rafinhaa
    Thread: Myth Auth - Working with groups and permissions
Post: Myth Auth - Working with groups and permissions

Any documentation on how to deploy groups and permissions using myth? I inserted this data into the auth_groups table: ID | Name | Description 1   | Admin | Admin 2   | Member | Member auth_g...
12,641 Views
13 Replies
06-22-2021, 12:53 PM
rafinhaa
    Thread: myth-auth How not to load the default routes
Post: RE: myth-auth How not to load the default routes

ikesela Wrote: (06-14-2021, 12:17 PM) -- after publish, system will copy firl AuthController to controller folder. myth auth  config/routes.php , remove the name space for route. it will load from ma...
7,821 Views
10 Replies
06-14-2021, 06:49 PM
rafinhaa
    Thread: myth-auth How not to load the default routes
Post: RE: myth-auth How not to load the default routes

paliz Wrote: (06-11-2021, 07:46 PM) -- Put dashbord ctl in app/conttoller -- I tried different ways, followed your tips, but to no avail. I had to do it this way: PHP Code: -- $routes->group('...
7,821 Views
10 Replies
06-14-2021, 08:15 AM
rafinhaa
    Thread: myth-auth How not to load the default routes
Post: RE: myth-auth How not to load the default routes

paliz Wrote: (06-11-2021, 10:17 AM) -- yes you need it $routes->group('', ['namespace' => 'Myth\Auth\Controllers'], function ($routes) { } -- If I use namespace my controllers is not found PH...
7,821 Views
10 Replies
06-11-2021, 12:28 PM
rafinhaa
    Thread: myth-auth How not to load the default routes
Post: RE: myth-auth How not to load the default routes

paliz Wrote: (06-09-2021, 10:41 PM) -- Comment routes you dont  need /* like thst*/ -- That way in a future update the file will be rewritten and my changes erased ikesela Wrote: (06-09-2021...
7,821 Views
10 Replies
06-10-2021, 07:57 AM
rafinhaa
    Thread: myth-auth How not to load the default routes
Post: myth-auth How not to load the default routes

Hi everyone, I am using myth for authentication in a study application. In the file "vendor\myth\auth\src\Config\Routes.php"  PHP Code: --
7,821 Views
10 Replies
06-09-2021, 10:44 AM
rafinhaa

Theme © iAndrew 2016 - Forum software by © MyBB