Questions tagged [userfrosting]

UserFrosting is a user management system for PHP that works out of the box and builds on top of modern components and standards.

userfrosting
Filter by
Sorted by
Tagged with
0 votes
1 answer
26 views

Userfrosting ExtendedMailMessage not clearing attachments

I am using the ExtendedMailMessage class to try and send an email with an attachments to my clients. The issue is I am sending the email inside a foreach loop and for some reason even though I am ...
Lukerayner's user avatar
1 vote
0 answers
56 views

UserFrosting route to localhost

I'm just getting into UserFrosting and now wanted to create a route that leads to the localhost of my system through the standard login page but I just can't figure out how that could work with ...
TheDarkHunter's user avatar
0 votes
0 answers
62 views

Using vuejs with userfrosting framework

I'm using vuejs to create a complex website that will have user registration and login. I want to implement userfrosting framweork to manage users registration/login workflow but I'm not sure how to ...
newbiedev's user avatar
  • 3,061
1 vote
0 answers
113 views

How to install NPM dependencies behind proxy even after I have made recommended changes in NPM CONFIG following other SO answers?

I am using: 64 bit Windows 10 platform composer 1.10.10 (globally installed) node ~12.14 NPM ~6.13 XAMPP with PHP 7.2.33 I am working with a project that will be using the PHP package named "...
Resolvingomegas's user avatar
1 vote
1 answer
270 views

PHP Fatal Error with Userfrosting now server always shows Error 500

I was managing my server and after a composer update I receive this message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to UserFrosting\System\Facade::setFacadeContainer() must be an ...
Yari Mirko Anoffo's user avatar
1 vote
2 answers
507 views

Create a Record in Eloquent database if it's not existing when selecting

I created a Model and so on, and now I get my data with that code: $all_keys = MemberAux::select('apikey','apisecret')->where('user_id', $user_id)->first(); The table has basically just an ...
Standard's user avatar
  • 1,500
1 vote
0 answers
137 views

Get Userfrosting / Slim to work with Controller Class

I'm completly new to the MVC pattern and I find it really hard to understand without programming, so I set up the Userfrosting Framework which is based on Slim. I followed this tutorial and I could ...
Standard's user avatar
  • 1,500
1 vote
1 answer
76 views

How to refresh UserFrosting UFTable without updating filters

Our UserFrosting (4.2) application has a dashboard page which shows recent data using a ufTable object. We would like to automatically refresh the table contents every 60 seconds. The idea is that ...
Elly Post's user avatar
  • 346
1 vote
1 answer
119 views

UserFrosting Nginx asset-raw 404

I am using Nginx and I am not using Apache. So I need a piece of Nginx code to solve the loading problem of the front-end static resources. My problem is similar to this, but I am not Apache. I didn'...
张成林's user avatar
0 votes
1 answer
58 views

Why does the URL contain query strings ? How to remove these

Dear Userfrosting experts... I have just installed Userfrosting on LAMP Stack. Ubutnu 16.04 The URL contains query strings : http://example.com/dashboard#&sort[table-activities][occurred_at]=...
Varun Verma's user avatar
1 vote
1 answer
134 views

How to properly return a .xls Excel file from a UserFrosting controller and process it in Angular 2+?

I am having problem receiving a Blob of Excel file using Angular 2+'s HttpClient get() method from a UserFrosting API. Here is the code for the Userfrosting API: public function apiGetAPExport(...
Jhake Inson's user avatar
1 vote
1 answer
171 views

Userfrosting installation issues

I did installation of Userfrosting as per the steps - no errors and all went well (using ubuntu 16 command line). When i loaded the site in browser, page did came but no CSS applied. Browser console ...
user3749706's user avatar
1 vote
1 answer
440 views

Laravel Eloquent join 2 tables together

I want to join 2 tables together using laravel eloquent. I could easily do this in mysql but have no idea using this. I have a model called device.php this contains the following method: public ...
Luke Rayner's user avatar
1 vote
0 answers
108 views

Want to establish relationship in USER and CUSTOMER table

Need some help. We have installed and working on UserFrosting. In this we have 2 tables one for USER and another for CUSTOMER. So the thing that we want to achieve, want to provide a option from ...
Ankur Singh's user avatar
1 vote
2 answers
687 views

RESTful API with Userfrosting

I'm using UserFrosting to manage users with PHP, in my API and I want to use the login function in controller with POST method. When i call the login function it return me as response The CSRF ...
M. Hanafi's user avatar
1 vote
1 answer
298 views

The proper way to skip the dashboard for non-master users in a User Frosting site

I want any user who isn't the master user to be redirected to a separate page at /profiles. I've achieved this by editing the admin sprinkle, adding this simple statement to the pageDashboard ...
Jonny Perl's user avatar
1 vote
1 answer
261 views

Unable to make index page secure and redirect to login page

I am using User Frosting V4. I learned about the routing concept. Now I wanted to make my index page a secure page - which means only logged in users should be able to access the page. If user is ...
Varun Verma's user avatar
1 vote
1 answer
136 views

issue with Userfrosting & Composer - no matching packages

Just working my way through the Userfrosting 4 tutorial. The basic app is up and running and am now creating the first sprinkle under "Your First UserFrosting Site". On running composer update I ...
Christian Mayne's user avatar
1 vote
1 answer
209 views

Adding .env file to UserFrosting

I am facing a problem linking my MySQL database to Userfrosting. The guide gives an example of adding a .enr file to the directory so that Userfrosting can read the database credentials, but it doesn'...
mnismael's user avatar
0 votes
1 answer
205 views

Integrate another dashboard with userFrosting

I am building a web project and using UserFrosting for the backend, it comes with SB admin as a dashboard, but I want to change it with another dashboard built with AngularJS or maybe static HTML, ...
AhmedMoneeb's user avatar
1 vote
1 answer
77 views

Saving a field inside database table using eloquent laravel - Userfrosting

This is a sample code inside some controller I have: $arr = json_decode($post['arr_json']); for ($i = 0; $i < count($arr); $i++) { $port = Port::where('id', $arr[$i]->id)->first(); ...
mallocthePD's user avatar
0 votes
1 answer
492 views

Adding a new global variable in twig

I'm trying to get data for a new field added in login page. What I've done: Modify AccountController.php login function adding new parameter: $this->_app->login($user, $client, !empty($data['...
Jose Luis's user avatar
1 vote
1 answer
178 views

Userfrosting - Get Working, Post blank screen with no error in log

I'm creating my first Userfrosting app and trying a few simple things but falling at the first hurdle. I am trying to create a form which adds bands to a database table: CREATE TABLE `uf_band` ( `...
Christian Mayne's user avatar
1 vote
0 answers
38 views

Dropzone.js & UserFrosting Forms [duplicate]

Does anyone have any experience implementing dropzone.js with UserFrosting? I receive the following error in browser's control: POST '.../website/images/upload 400 (Bad Request)' Dropzone.js is ...
Luke G's user avatar
  • 1,739
2 votes
3 answers
122 views

Direct URLs & delete confirmation forms

I am seeking a best practice advice for implementing delete confirmation forms. The following page, among other options, contains delete button... /website/features/f/123 ...when clicked a simple ...
Luke G's user avatar
  • 1,739
0 votes
0 answers
39 views

Register Master Account - incorrect token

I am getting the following error trying to register UserFrosting's master account: Sorry, that configuration token is not correct. The only thing I managed to capture is Failed to load resource: ...
Luke G's user avatar
  • 1,739
1 vote
1 answer
187 views

PHP app, web services & separate IP addresses

I am working on an app where each customer has its own profile. One of the features allows sending SOAP requests to systems owned by customers. Currently all communication with customers web services ...
Luke G's user avatar
  • 1,739
0 votes
0 answers
35 views

WDVSS & regex validator

I am trying to get the following regex to work with Web Data Validation Standard Schema (WDVSS) and UserFrosting. <soapenv:Envelope [\s\S.]*?<\/soapenv:Envelope> It works perfectly fine on ...
Luke G's user avatar
  • 1,739
1 vote
1 answer
2k views

Composer & Parsedown - Class 'UserFrosting\\Parsedown' not found

I managed to install Parsedown using composer with "require": { ... "erusev/parsedown": "^1.6" }, and added the class path to the autoload section "autoload": { "...
Luke G's user avatar
  • 1,739
1 vote
2 answers
875 views

UserFrosting forms - Invalid or missing CSRF token

I am trying to submit a simple form in UserFrosting and as a test only display the success message, with no data modification. I followed the guidance from Lesson 2 but I ran into the CSRF issue: ...
Luke G's user avatar
  • 1,739
2 votes
1 answer
187 views

UserFrosting & AWS SDK

I have the following code working as expected outside UserFrosting: <?php echo "Hello World.<br>"; require_once '../vendor/autoload.php'; use Aws\Common\Aws; $aws = Aws::factory('../aws/...
Luke G's user avatar
  • 1,739
1 vote
1 answer
55 views

UserFrosting, Composer & wrong path in includeJSTop

I recently started learning UserFrosting... I managed to successfully install highlightjs from Packagist using Composer. All went well, new folder and all required files are created in /userfrosting/...
Luke G's user avatar
  • 1,739
-1 votes
1 answer
219 views

Custom controllers in UserFrosting

I have been trying to create a custom controller that extends UserFrosting's BaseController and then call it's method from index.php. Seems simple, but so far I am highly unsuccessful. I am new to ...
Luke G's user avatar
  • 1,739
2 votes
0 answers
195 views

UserFrosting + QT: Authentication similar to OpenID?

I am currently working on a project involving a Windows desktop client based on QT that needs to be connected to a server hosting an user management software (OpenID) for user authentication before ...
darkarn's user avatar
  • 53
1 vote
2 answers
431 views

Using Laravel Facades with UserFrosting

Have recently starting using UserFrosting to as part of a project and I'm having some problems using Facades within UserFrosting and would appreciate some help if possible. I am attempting to use the ...
dazoido's user avatar
  • 13
1 vote
1 answer
136 views

php error-log on UserFrosting after loading main page

I'm trying to install UserFrosting and i get these errors after loading the main page [01-Oct-2016 18:28:29 Asia/Jerusalem] PHP 6. Composer\Autoload\includeFile() C:\Server\userfrosting\vendor\...
Gal Solomovich's user avatar
1 vote
1 answer
89 views

Disallowing spaces in usernames [UserFrosting/Fortress]

How would I implement a filter to block out spaces in username (during registration)? I've been looking at the Fortress documentation, and probably the regex option is the one to look for. But there'...
amivag's user avatar
  • 91
2 votes
1 answer
87 views

Adding users directly from the database [UserFrosting 0.3.1]

I want to add a number of test user accounts and it's a lot faster to do it directly from the Database. There are a couple of fields that I cannot figure out: secret_token: How do I generate this on ...
amivag's user avatar
  • 91
0 votes
0 answers
81 views

Show logged-in users? [userfrosting]

How big of a task is it to be able to show users who are logged in, at least in the root/admin panel? Thank you [userfrosting 0.3.1]
amivag's user avatar
  • 91
1 vote
2 answers
86 views

How to access config vars from within another class in UserFrosting?

can anyone give me a quick hand with namespaces and the UserFrosting environment? To explain my issue, I'm using TCPDF to create a PDF document from data within UserFrosting. I've created a custom ...
nockieboy's user avatar
  • 357
1 vote
1 answer
349 views

UserFrosting save twig render output to a variable then write to a file

I want to save twig render output to variable and then write into a file. Normally, Twig in other projects would behave like this: $bob = $this->render('index.html.twig',[ 'foo' => $foo, 'token'...
Theodore's user avatar
1 vote
1 answer
255 views

How to make sidebar menu respond to URLs with parameters?

I define a URL in Slim such as: $app->get('/dashboard/items?', .... I then add a link to it in sidebar.twig, and sure enough, it becomes of class "active" once the link is visited. However, if ...
amivag's user avatar
  • 91
1 vote
1 answer
341 views

UserFrosting (0.3.x) SMTP email error

[UserFrosting 0.3.x] I just set up UserFrosting, and everything looks to be working, except one tiny thing... When a user goes to register, there's an error "Fatal error attempting mail, contact ...
swcreates's user avatar
3 votes
1 answer
117 views

How to bulk import users into userfrosting?

what is the best way to bulk import users into userfrosting? I tried importing CSV into uf_users table with flag_verified and flag_enabled set to 1, with requisite fields (id, user_name, display_name,...
Spurgeon's user avatar
  • 148
0 votes
1 answer
103 views

call a function in different namespacs php

I learn MVC recently. I try to rebulid my website in MVC structure, and i have a problem to call function inside different name sapace(maybe i don't know about OOP very much). Here is my code: ...
user4967821's user avatar
1 vote
1 answer
178 views

How to install asset manager for UserFrosting login system?

I use userFrosting for my login system, i have problem to include css files. I used this code {% block stylesheets %} {{ parent() }} <link href="{{ asset('css/style.css') }}" rel="stylesheet">...
zex_rectooor's user avatar
0 votes
0 answers
136 views

Userfrosting calling model from template twig

For the first time, I am working on userfrosting, it is based on MVC. So I know how the things are working but my issue is now, I want to call the one of the model to find the particular userid ie. ...
user2982142's user avatar
1 vote
1 answer
351 views

Userfrosting: How to make user login automatically soon after registration

In our usecase, we need to login the user automatically soon after successful registration for enabling, rather forcing the user to: Change password. Upload a file. How to achieve this ...
Spurgeon's user avatar
  • 148
2 votes
1 answer
451 views

Rendering custom PHP code [UserFrosting/Slim]

[UserFrosting 0.3.1] I want to execute a custom PHP file, bypassing other UserFrosting architecture. Slim's $app->render("myfile.php") does not seem to work. It expects a twig file in the themes ...
amivag's user avatar
  • 91
2 votes
1 answer
1k views

File Upload in Userfrosting

We need to have the user upload an image as a part of sign up process. Had tried accessing $_FILES['filename'] in the controller, which turns out to be undefined under slim. Had seen about Slim's ...
Spurgeon's user avatar
  • 148