New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fh-wfm-user-angular

Package Overview
Dependencies
Maintainers
4
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fh-wfm-user-angular

An AngularJS module for viewing User details.

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-55.56%
Maintainers
4
Weekly downloads
 
Created
Source

Raincatcher User Angular User Interface

This module is an AngularJS implementation of User functionality for the Raincatcher project.s

Setup

angular.module('app', [
...
, require('fh-wfm-user-angular')({
  templates: {
    //Optional template for the login screen
    //Note: This will be loaded from the angular template cache.
    login: 'mycustomlogintempalateid'
  }
})
...
])

Templates

Login

A custom html template can be passed in when rendering the login directive.

This template has access to the Controller as ctrl.

Login Controller Properties

The Login Controller is assigned the following properties that are accessible to the custom template if required.

PropertyTypeDescriptionExample
loginfunctionAuthenticates the user with a username and password parametersctrl.login("someusername", "somepassowrd")
logoutfunctionLogs out the currently logged out userctrl.logout()
hasSessionbooleanIdentifies if the currently logged in user has a valid sessionctrl.hasSession
loginErrorMessagestringA message to display to the user if there is an error messagectrl.loginErrorMessage = "Invalid Credentials"

Topics

As part of rendering Users, this module publishes and subscribes to several topics. These topics can be implemented in your application or you can use the fh-wfm-user module that already has implementations for these topics.

Published Topics

Each of the following topics subscribes to the error and done topics. If the parameter includes a topicUid, the error topic should have the topicUid appended to the done or error topic.

TopicParameters
wfm:workorders:listNONE
wfm:membership:listNONE
wfm:users:listNONE
wfm:users:create{userToCreate: userToCreate}
wfm:users:update{userToUpdate: userToUpdate}
wfm:users:read{id: "USERID"}
wfm:users:remove{userToRemove: {id: "USERID"}}
wfm:users:has_sessionNONE
wfm:users:clear_sessionNONE
wfm:users:read_profileNONE
wfm:users:authenticate{username: "user1234", password: "pass1234"}
wfm:groups:listNONE
wfm:groups:create{groupToCreate: groupToCreate}
wfm:groups:update{groupToUpdate: groupToUpdate}
wfm:groups:read{id: "GROUPID"}
wfm:groups:remove{groupToRemove: {id: "GROUPID"}}

Keywords

FAQs

Package last updated on 10 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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