Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kohanajs/mod-admin

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kohanajs/mod-admin - npm Package Compare versions

Comparing version 5.3.4 to 5.3.5

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [5.3.5](https://gitlab.com/kohana-js/modules/admin/compare/v5.3.4...v5.3.5) (2023-03-15)
### Bug Fixes
* change person not work in controller/Account ([471d143](https://gitlab.com/kohana-js/modules/admin/commit/471d1431a07171534b6ce1a946be8bd04c4bd869))
### [5.3.4](https://gitlab.com/kohana-js/modules/admin/compare/v5.3.3...v5.3.4) (2022-08-05)

@@ -7,0 +14,0 @@

12

classes/controller/Account.js

@@ -7,3 +7,4 @@ /***

const { ControllerMixinView, ORM } = require('kohanajs');
const { ControllerMixinAccount, ControllerMixinAccountPassword } = require('@kohanajs/mod-auth');
const { ControllerMixinAccount } = require('@kohanajs/mod-auth');
const { ControllerMixinAccountPassword } = require("@kohanajs/mod-auth-adapter-password");

@@ -13,3 +14,6 @@ const ControllerAdmin = require('../ControllerAdmin');

const User = ORM.require('User');
const Base = Controller.mixin([ControllerMixinAccount, ControllerMixinAccountPassword], ControllerAdmin);
const Base = Controller.mixin([
ControllerMixinAccount,
ControllerMixinAccountPassword
], ControllerAdmin);

@@ -36,9 +40,9 @@ class ControllerAccount extends Base {

async action_person(){
async action_change_person(){
this.setTemplate('templates/account/change-name/form', {item: this.state.get(ControllerMixinAccount.PERSON)});
}
async action_person_post(){}
async action_change_person_post(){}
}
module.exports = ControllerAccount;
const {Controller} = require("@kohanajs/core-mvc");
const {ControllerMixinMime, ControllerMixinView, ControllerMixinDatabase, KohanaJS, ORM} = require("kohanajs");
const User = ORM.require('User');
const {ControllerRegister} = require("@kohanajs/mod-auth");
const {ControllerRegister, ControllerAuth} = require("@kohanajs/mod-auth");

@@ -15,3 +15,4 @@ const Base = Controller.mixin([

super(request);
this.state.get(ControllerMixinDatabase.DATABASE_MAP).set('admin', KohanaJS.config.auth.databasePath + '/admin.sqlite');
this.state.get(ControllerMixinDatabase.DATABASE_MAP)
.set('admin', KohanaJS.config.auth.databasePath + '/admin.sqlite');
}

@@ -31,2 +32,3 @@

const result = await decorator.execute('register_post');
if(result.status === 500)this.body = result.body;

@@ -33,0 +35,0 @@ KohanaJS.config.register.allowPostAssignRoleID = oldAllow;

{
"name": "@kohanajs/mod-admin",
"version": "5.3.4",
"version": "5.3.5",
"description": "Admin templates for KohanaJS ORM",

@@ -20,10 +20,7 @@ "main": "index.js",

"dependencies": {
"@kohanajs/constants": "^1.1.0",
"@kohanajs/mixin-orm": "^3.2.2",
"@kohanajs/mod-auth": "^3.0.3",
"decamelize": "^6.0.0",
"camelize": "^1.0.0",
"csv-parse": "^5.3.0"
"camelize": "^1.0.1",
"csv-parse": "^5.3.5"
},
"devDependencies": {}
}

@@ -1,2 +0,1 @@

const { HTTP_METHODS } = require('@kohanajs/constants');
const { RouteList } = require('@kohanajs/mod-route');

@@ -6,8 +5,4 @@ const RouteCRUD = require('./classes/helper/CRUD');

RouteList.add('/admin', 'controller/admin/Home');
RouteList.add('/account/person', 'controller/Account', 'person');
RouteList.add('/account/person', 'controller/Account', 'person_post', HTTP_METHODS.POST);
RouteList.add('/account/password', 'controller/Account', 'password');
RouteList.add('/account/password', 'controller/Account', 'password_post', HTTP_METHODS.POST);
RouteList.add('/register', 'controller/Setup', 'setup_post', 'POST', 10);
RouteList.add('/admin/users/create-user', 'controller/admin/User', 'create_post', 'POST');
RouteCRUD.add('users', 'controller/admin/User');

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc